Hossein Bustanchi February 2016

how get value of array in php code

i want get value of array in php , but it don't ... my print_r($_POST) is :

Array
(
    [form] => Array
        (
            [site_core_selection] => Array
                (
                    [0] => 
                )

            [domain] => Array
                (
                    [0] => com
                )

            [hidden_premier] => 
            [shoping_hidden] => 
            [submit] => تائید سفارش
            [formId] => 3
        )

)

i want get value of domain[0] , please help me ??

Answers


Little Phild February 2016

Try out this

<?php
echo $_POST['form']['domain'][0];
?>


rdn87 February 2016

In php is very simple, try this code:

<?php
   echo $_POST["form"]["domain"][0];
?>

Post Status

Asked in February 2016
Viewed 1,120 times
Voted 11
Answered 2 times

Search




Leave an answer