PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $start1 = 10; $start2 = 20; $start3 = 30; $start4 = 40; $start5 = 50; //get all defined vars $vars = get_defined_vars(); foreach($vars as $var=>$val) { if (substr($var, 0, 5) == 'start') { printf('$%s = %s '. PHP_EOL, $var, $val); } }
Show:  
Copy Clear