7. How to declare an array in php?
Eg : var $arr = array('apple', 'grape', 'lemon');
8. What is the use of 'print' in php?
This is not actually a real function, It is a language construct. So you can use with out parentheses with its argument list.
Example print('PHP Interview questions');
print 'Job Interview ');
9. What is use of in_array() function in php ?
in_array used to checks if a value exists in an array
10. What is use of count() function in php ?
count() is used to count all elements in an array, or something in an object
Eg : var $arr = array('apple', 'grape', 'lemon');
8. What is the use of 'print' in php?
This is not actually a real function, It is a language construct. So you can use with out parentheses with its argument list.
Example print('PHP Interview questions');
print 'Job Interview ');
9. What is use of in_array() function in php ?
in_array used to checks if a value exists in an array
10. What is use of count() function in php ?
count() is used to count all elements in an array, or something in an object