Re: Problems with implode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I don't think that would be a problem, the size of the array.  I've used 
implode at least once or twice on fairly large arrays.  More likely is 
something weird with your data.   I'd do a print_r or var_dump to check 
the data and make sure that's not the issue.

Not saying implode isn't having a problem, but I've never seen any issues 
with it like you're describing.

-TG

----- Original Message -----
From: Toke Herkild <th@xxxxxxxxxxx>
To: php-general@xxxxxxxxxxxxx
Date: Tue, 24 Mar 2009 12:14:01 +0100
Subject:  Problems with implode

> Hi All,
> 
> I've an array() with approx 1200 items (list of id-mappings) that part 
> works fine.
> 
> Now I want to add this list to a query:
> $where = "id in (".$idList.")";
> 
> To accomplish that i do an implode:
> $idList = implode(',', $TidList);
> 
> My problem is that some of the values gets concenated, others ere 
> missing 2 or 3 cifres and some just doesn't show up.
> 
> Is this some kind of implode feature or a string to large problem ?
> 
> Regards,
> Toke Herkild


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux