is_array Php 1

is_array Php


Here is what the above code is Doing:
1. We create an array called $yes.
2. We use the is_array() function to check if $yes is an array.
3. If $yes is an array, we print “Array”.
4. If $yes is not an array, we print “not an Array”.
5. We create a string called $no.
6. We use the is_array() function to check if $no is an array.
7. If $no is an array, we print “Array”.
8. If $no is not an array, we print “not an Array”.

Similar Posts