Re: [PHP4BETA] Problem here? string implode(array pieces, string glue);
| From: | thies at digicol dot de | Date: | Thu, 10 Feb 2000 11:51:06 +0000 |
| Subject: | Re: [PHP4BETA] Problem here? string implode(array pieces, string glue); | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-10016@lists.php.net to get a copy of this message | ||
On Thu, Feb 10, 2000 at 08:18:57PM +1000, Robert Chalmers wrote:
> Can some kind soul please tel me why this is giving the following error
> message..
>
> $contents = implode("",(@file($filename)));
>
> Warning: Bad arguments to implode() in class.FastTemplate.php3 on line 157
that would only happen if file($filename) does not return an
array (eg if the file is not found).
please make sure that $filename exists and is readable.
>
>
>
> Now even if I write it this way,
> ............ man page .............
> Description
> string implode(array pieces, string glue);
> Returns a string containing a string representation of all the array
> elements in the same order, with the glue string between each element.
> Example 1. implode() example
> $colon_separated = implode($array, ":");
> ........................................
>
> $contents = implode((@file($filename)), "");
>
> It still fails... ?
>
> ta da :-)
>
> Bob
>
> http://www.chalmers.com.au Clipart And Books
> Art, Design and Graphics.
>
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>
--
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany