> $nameArray = array("Last", "Suffix", "Prefix", "First", "Middle");
> while (list($key, $value) = each ($nameArray)){
> if ($infoObject->$value != ""){
> echo "$infoObject->$value";#this is the problem line...
> }
> }
>
>
> If I take out the "$infoObject->" on th
Hi all. I'm retrieving some data from a database and writing it into an
object with mysql_fetch_object. In a loop, using list and each, I'm
checking the values and printing them out accordingly. I get a parse error
that says it's expecting a string. Here's the code...
$nameArray =
2 matches
Mail list logo