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.
2.1m questions
2.1m answers
60 comments
56.7k users