advanced code snippet search
chrisaiv on 11/23/09
php
11/23/09 01:36pm
<?php /* How to dynamically cast a variable*/ $a = 'kevin';$b = 'mary';$c = 'joe';$d = 'larry';$e = 'audrey'; $students = array('a', 'b', 'c'); foreach( $students as $seat ){ echo $$seat . "<br />";} ?>
Report this snippet Tweet
Comment:
You need to login to post a comment.