Ask Question | Take Test

What will be the output of the following p...

0

What will be the output of the following php code and why?

$a = array(‘jack’, ‘anne’, ‘mike’); If(array_search(‘jack’, $a)) { Echo “Inside if statement”; } Else { Echo “Inside else statement”; }
  1. Inside if statement
  2. Inside else statement
  3. -1
  4. None
Asked By : YamunaCategory : Php
Answer
a. Inside if statement

Copyright © Interviewkiller.com - Job Interview Questions and Answers - Recruitment Tips