How to get minimum and maximum value from array
To get minimum value from array we used min() $dollar = array(‘9.22’, ‘5.32’, ‘102.58’); echo min($dollar); result : 5.32 echo
Read moreTo get minimum value from array we used min() $dollar = array(‘9.22’, ‘5.32’, ‘102.58’); echo min($dollar); result : 5.32 echo
Read more$arr = array( 4 => ‘apple’, 7 => ‘orange’, 13 => ‘plum’ ); Used end() echo end($arr); //echoes “plum”
Read more$arr = array( 4 => ‘apple’, 7 => ‘orange’, 13 => ‘plum’ ); Used reset() echo reset($arr); //echoes “apple” If
Read moreThe indexed array holds elements in an indexed form which is represented by number starting from 0 and incremented by
Read moreThe strlen() function is used to get the length of string.
Read moreThe PHP count() function is used to count total elements in the array, or something an object.
Read morePHP single line comment is done in two ways: Using // (C++ style single line comment) Using # (Unix Shell
Read morePHP constants are name or identifier that can’t be changed during execution of the script. PHP constants are defined in
Read moreEcho can output one or more string but print can only output one string and always returns 1. Echo is
Read moreScalar type declarations Return type declarations Null coalescing operator (??) Spaceship operator Constant arrays using define() Anonymous classes Closure::call method
Read more