0

I have an array:

$r = array(1,2,42,55);

and I want to call encrypt(); function of hashids

which takes input like this:

encrpyt(1,2,42,55);

I tried extract($r) but it does not work.

2
  • 1
    I suppose you should do the encrypt to the array values not the array !! Commented Feb 15, 2014 at 19:19
  • Yes, that's why I want to extract the values from the array. Commented Feb 15, 2014 at 19:22

1 Answer 1

0

You can call a callback on each of the elements of the array. check array_map if it helps.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.