FW: [PHP] Coding hints?

From: Date: Wed, 08 Nov 2000 02:41:22 +0000
Subject: FW: [PHP] Coding hints?
Groups: php.general 
Request: Send a blank email to php-general+get-24244@lists.php.net to get a copy of this message
<sheepish grin> oops Typo... $arr = file('sb' . $sb . '.src'); will be sba2.src </sheepish grin> if you want to see whats happening with the string concatenation, you could also do something like $str = 'sb' . $sb . '.src'; if (isset($debug)) { print $str; } $arr = file ($str); Then if you needed to debug you could pass scriptname.php?debug=1 and see debug info. Cheers, Lawrence. -----Original Message----- From: Sheed, Lawrence -SHNGI -AG Sent: November 8, 2000 10:38 AM To: 'Gavster' Cc: php-general@lists.php.net Subject: RE: [PHP] Coding hints? Its a cast to an int where does $sb get its value from? You can put anything in $sb, by default its a string. Eg If you have a2 in $sb then $arr = file('sb' . $sb . '.src'); will be sbs2.src

« previous php.general (#24244) next »