Call a functionpassing and returning variables
<?php
function cnt_and_query ($table_name,$where_clause) {
… more php code here …
return array ($statmt_id2,$num_rows_selected);
}
?>
<?php
list($statmt_id,$cnt_found) = cnt_and_query("vhs",$where_clause);
?>
Call a function
Start function
End function
Return multiple values
Previous slide
Next slide
Back to first slide
View graphic version