Re: Problems with implode
| From: | TG | Date: | Tue, 24 Mar 2009 13:03:49 +0000 |
| Subject: | Re: Problems with implode | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-290637@lists.php.net to get a copy of this message | ||
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@ezl-data.dk>
To: php-general@lists.php.net
Date: Tue, 24 Mar 2009 12:14:01 +0100
Subject: [PHP] 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