I have an array:
$r = array(1,2,42,55);
and I want to call encrypt(); function of hashids
encrypt();
which takes input like this:
encrpyt(1,2,42,55);
I tried extract($r) but it does not work.
extract($r)
You can call a callback on each of the elements of the array. check array_map if it helps.
1.4m articles
1.4m replys
5 comments
56.8k users