Mega Code Archive

 
Categories / Php / Functions
 

List($maths, $english, , $biology) = $scores

<?php      $scores = array(88, 75, 91, 84);   list($maths, $english, , $biology) = $scores;   @printf("<p>Maths: %d; English: %d; History: %d; Biology: %d.</p>\n",           $maths, $english, $history, $biology); ?>