> I want to make a loop.Like $a = "123"; //$a is One two threw not > hundred... > and i want to make for each $a then $b = $a + 2 > > The output will be. > 3 (1+2) > 4 (2+2) > 5 (3+2) > > Any example?
$a = "123"; $c = ''; $b = strlen($a); for($x=0;$x<$b;$x++) { $c .= $a{$x} +2; } echo $c; ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php