Ichier » ichier's coding corner

{ coding }

by the time i got a solid collection of little helpers that i don't want to miss in my regular workday. here are some of those for you. free for any use ľ except if you're a nazi. would be nice if you kept the credits!
if you're working on a commercial project, i'd highly appreciate a little donation.
if you optimized some line, or just being enthuiastic, you can drop me a note at the guestbook.

{ functions }

echo_var

check and print the value of a variable

array_csort
sort an array by one or more columns

array_merge_rec
merge arrays recoursive, without deleting any value

array_search_recursive
search in an array recursively and return the keys

array_extract
get one or more elements out of an array from any depth

mstrstr / mstristr
search values out of an array in a string, return true or false

array_munique
as array_unique but for two-dimensional arrays

array_unique_key
remove keys with same associative names