Functions, that returns more
1 2 function return_more() { 3 return array('first', 'second'); 4 } 5 6 list($ret1, $ret2) = return_more(); 7 8 echo $ret1.'<br>'; 9 echo $ret2.'<br>';
DZone Snippets > warona > php
13503 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
1 2 function return_more() { 3 return array('first', 'second'); 4 } 5 6 list($ret1, $ret2) = return_more(); 7 8 echo $ret1.'<br>'; 9 echo $ret2.'<br>';