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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sathya
Forum Commoner
Posts: 72
Joined: Sat Dec 12, 2015 7:26 am
Contact:

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

Post 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
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

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

Post by Celauran »

Your post is inconsistent. Please post your actual code.
sathya
Forum Commoner
Posts: 72
Joined: Sat Dec 12, 2015 7:26 am
Contact:

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

Post 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?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

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

Post by Celauran »

So the code you haven't written doesn't work?
sathya
Forum Commoner
Posts: 72
Joined: Sat Dec 12, 2015 7:26 am
Contact:

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

Post by sathya »

I will share the code later bro thanks for your support bro
sathya
Forum Commoner
Posts: 72
Joined: Sat Dec 12, 2015 7:26 am
Contact:

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

Post by sathya »

okay bro thank you so much:)
Post Reply