0

So I select 2 usernames from the database var_dump($result); gives me the following:

array(6) { 
  ["first_name"]=> string(5) "First" 
  [0]=> string(5) "First2" 
  ["last_name"]=> string(7) "Last" 
  [1]=> string(6) "Last2" 
  [2]=> string(5) "First" 
  [3]=> string(7) "Last" 
}

How can I select First and First2 seperatly $result['first_name'] returns Jetse

How to select First 2?

1
  • You're going to have to show some of your own code first. Commented Apr 16, 2014 at 14:10

1 Answer 1

1

Just try with:

$result['first_name']; // First
$result[0]; // First2
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.