search

Home  >  Q&A  >  body text

What's wrong with the code below? Why does it prompt a syntax error when running?

<?php
 $arr1 = ['id'=>100,'demo'=>"SQ"];
 $arr2 = [1=>100, 1.3=>"SQ", 1.7="SHI", true="Qiang"];
 print_r($arr1);
 print_r($arr2);
?>

自律者自由自律者自由2611 days ago1365

reply all(2)I'll reply

  • 又白又帅又可爱

    又白又帅又可爱2017-11-20 11:44:12

    Correct solution on the first floor

    reply
    0
  • 电动小老虎

    电动小老虎2017-11-19 23:36:08

    1.7=>      true=>

    reply
    0
  • Cancelreply