Advanced arrays


#1

can someone help with this.its nt printing out anything






<?php
// On the line below, create your own associative array:
$myArray= array("name"=>"opeyemi","age"=>20,"school"=>"funaab");

  // On the line below, output one of the values to the page:
     echo $myArray ["age"];
 
      
  // On the line below, loop through the array and output
  // *all* of the values to the page:
     $length= count($myArray);
      foreach( $myArray as $me =>$include){
         echo 'i have $include.' '.$me.'<br/>';
      }

 
  ?>
</p>



#2

Here check this out I have commented where the error was

<?php
// On the line below, create your own associative array:
$myArray= array("name"=>"opeyemi","age"=>20,"school"=>"funaab");

  // On the line below, output one of the values to the page:
     echo $myArray ["age"]."<br><br>";
	
 
      
  // On the line below, loop through the array and output
  // *all* of the values to the page:
     $length= count($myArray);
      foreach( $myArray as $me =>$include){
		  //your mistake was here in the echo statement
         echo   "I have $include $me<br>"; 
      }

 
  ?>
</p>

#3

have done dat.but is telling me that the d name''opeyemi'' is not displayed. though it is displayed on the browser