FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Count how many times a value occurs in an array
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Count how many times a value occurs in an array [message #179275 is a reply to message #179274] Thu, 27 September 2012 22:07 Go to previous messageGo to previous message
Christoph Becker is currently offline  Christoph Becker
Messages: 91
Registered: June 2012
Karma:
Member
M. Strobel wrote:
> Yes, but I had a problem with callback functions: if you created them with
> create_function this was a call-time call-by-reference.

Could you please give an example. For example

array_walk($array, create_function('&$x', '$x = trim($x);'));

works fine.

--
Christoph M. Becker
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Only Allow exec in CLI
Next Topic: Re: FEDEX Shipping
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 17:51:04 GMT 2024

Total time taken to generate the page: 0.05517 seconds