Hi,

  I am curious if there is an easy way to filter out values in an
ordinary array with cake.  I know with fields you can just call find
on them and set your conditions. But with non objects you cannot call
find().

I have an array of strings, and i want to filter out the values that
are not like my desired "%term%". I know PHP has the array_filter()
function.  But i am curious if there is anything as smart as cake's
helper function.

it would be nice to do something like this

$new_array = array_filter($string_array, array('LIKE' => '%term%'));

If anyone has solved a problem like this before, the help would be
great!

Thanks :)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to