Link to home
Start Free TrialLog in
Avatar of MK15
MK15

asked on

php array

hi

how can i search the string of a key in a array?

for example if i had $test = array(':colour'=>'red', ':name'=>'john', 'age'=>13);

how could i search the key of each value and check if it begins with a colon?

thanks
ASKER CERTIFIED SOLUTION
Avatar of Greg Alexander
Greg Alexander
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MK15
MK15

ASKER

thank you, your help is appreciated:)