0

I want to get the value of index 'image' from my output array Here is my output of an array I am get index of fname from this array by using this code

<?php echo $this_>session->userdata('fname');?>

How I Get the index of Image from array userinfo. I want get also in session

enter image description here

1 Answer 1

1

Its multi dimensional array. Simply use below code.

$fname      =   $this->session->userdata('fname');
$imgIndex   =   $fname['user_info']['image'];
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.