[PHP] php regexp question

2003-03-25 Thread cpaul
hi i've made a small php site that is searching against french documents stored in a mysql database. when it comes to rendering search results, the client has asked if the words that were searched for can be highlighted. "no problem!" i thought. just do a regexp replace and wrap a tag ar

Re: [PHP] test for associative or numerically indexed array

2003-03-20 Thread cpaul
> So much for the "theory" - what are you really trying to achieve? Maybe > there's something you can redesign so you're not relying on the fact if an > array is "enumerated" or not. thanks very much for your help - i understand now that no matter what kind of array i think i'm making, it is bein

Re: [PHP] test for associative or numerically indexed array

2003-03-20 Thread cpaul
> At 08:52 20.03.2003, cpaul said: > [snip] > >ok thanks - that makes sense. sort of doesn't solve my problem, because > >if my function receives an enumerated array, i want it to treat it as an > >associative arra

Re: [PHP] test for associative or numerically indexed array

2003-03-19 Thread cpaul
> --- cpaul <[EMAIL PROTECTED]> wrote: > > Is there a method to test whether or not an array is associative? [EMAIL PROTECTED] wrote: > It's all the same. An enumerated array is really an associative array where > every key is an integer. Just treat them all li

[PHP] test for associative or numerically indexed array

2003-03-19 Thread cpaul
Is there a method to test whether or not an array is associative? I'm trying to make a function that can deal with whatever type of array (associative or numeric) that is thrown at it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php