string vs number

From: Date: Tue, 05 Feb 2008 18:36:40 +0000
Subject: string vs number
Groups: php.general 
Request: Send a blank email to php-general+get-268734@lists.php.net to get a copy of this message
hi all, i have this php statement: <? if($rowB[$rowA[0]]=='Y') {echo "checked";} ?> debugging, i got $rowA[0] = 54, but i want $rowB[$rowA[0]] = $rowB['54']. is this possible? how do i force $rowA[0] to be a string ('54')? thanks t. hiep

« previous php.general (#268734) next »