0

I am having an array in php as below

Array
(
    [0] => 375452292
    [1] => 205304629
    [2] => 910337332
    [3] => 616516330
    [4] => 560488951
)

i am trying to convert this array into a formatted query parameter as below

'375452292','205304629','910337332','616516330','560488951' 

pls help.

1 Answer 1

2

Use "implode"

http://php.net/manual/en/function.implode.php

implode(",", $array);
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.