Page 1 of 1

how to get the array values and pass it to the url?

Posted: Mon Feb 22, 2016 3:39 am
by sathya
Hi All,

i have an variable $a holds the below information when dumb

var_dumb($a) it will produce the below result:

array(1)
{
[0]=> array(1)
{
[0]=> string(5) "22651" } }

here i want to pass the 22651 no in the sample url like below

api.devenetwork.com/22651

i tried like

api.devenetwork.com/"$a" it prints like api.devenetwork.com/"$a"

api.devenetwork.com/' .$a. ' it prints like undefined variable a

kindly help me to solve the problem.

Thanks for all who helped me a lot

Re: how to get the array values and pass it to the url?

Posted: Mon Feb 22, 2016 5:58 am
by Celauran
Your post is inconsistent. Please post your actual code.

Re: how to get the array values and pass it to the url?

Posted: Mon Feb 22, 2016 6:32 am
by sathya
The above code only I have and I don't have actual code.what's your doubt in this let me know i can clarify you?

Re: how to get the array values and pass it to the url?

Posted: Mon Feb 22, 2016 7:51 am
by Celauran
So the code you haven't written doesn't work?

Re: how to get the array values and pass it to the url?

Posted: Mon Feb 22, 2016 8:37 am
by sathya
I will share the code later bro thanks for your support bro

Re: how to get the array values and pass it to the url?

Posted: Mon Feb 29, 2016 4:09 am
by sathya
okay bro thank you so much:)