0

As we use $sub = $_REQUEST["sub"] for passing string onto the php But How can I perform same thing in array I want to pass String array as parameter onto the php file using $_REQUEST. Help me.

1 Answer 1

2

Your question was unclear.

If you want $sub to array you can do:

$sub[] = $_REQUEST["sub"]

And if you want $_REQUEST["sub"] to array you can do:

$sub = $_REQUEST["sub[]"]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.