/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /* How to dynamically cast a variable */ $a = 'kevin'; $b = 'mary'; $c = 'joe'; $d = 'larry'; $e = 'audrey'; foreach( $students as $seat ){ echo $$seat . "<br />"; } ?>
Comments
