Re: still stuck / newbie, simple problem / question

From: Date: Wed, 30 Apr 2003 10:52:55 +0000
Subject: Re: still stuck / newbie, simple problem / question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145755@lists.php.net to get a copy of this message
At 12:43 30-4-03, you wrote:
$topic = $user['topic']substr($topic, 0, 20)."..."; <<< this line dosent this should make a parse error, as $user['topic']substr($topic, 0, 20) is gramatically wrong.
if you would write $user['topic'].substr($topic, 0, 20), the grammar would be ok but the output would not be what you hope for, for as far as i can see the $topic you send to substr() is not set yet. i think you are looking for: $topic = substr($user['topic'], 0, 20)."...";

« previous php.general (#145755) next »