how to get the array values and pass it to the url?
Posted: Mon Feb 22, 2016 3:39 am
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
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