Re: help with script!!!
| From: | Philip Olson | Date: | Sun, 02 Feb 2003 08:27:39 +0000 |
| Subject: | Re: help with script!!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133977@lists.php.net to get a copy of this message | ||
On Sat, 1 Feb 2003, Hugh Danaher wrote:
> echo("| %s | %s | %s | %s | %s |<br />", $array[id], $array[username],
> $array[password], $array[status], $array[notes]);
>
> try
> echo "| %s | %s | %s | %s | %s |<br />".$array[id]."
> ".$array[username]."
> ".$array[password]." ".$array[status]." ".$array[notes];
>
> dots not comas between variables.
echo takes on commas as we can echo multiple variables which
isn't something we can do with print. This is also the main
difference between echo and print. So, the commas are okay
here but as someone else already stated, echo doesn't behave
like printf so no special %formatting% with echo.
Regards,
Philip