Example
<?php
echo “<pre>”;
$array = array(‘a’, ‘b’, ‘c’, ‘d’, ‘e’);
print_r(array_chunk($array, 3));
?>
Output
Array
(
[0] => Array
(
[0] => a
[1] => b
[2] => c
)
[1] => Array
(
[0] => d
[1] => e
)
)
Example
<?php
echo “<pre>”;
$array = array(‘a’, ‘b’, ‘c’, ‘d’, ‘e’);
print_r(array_chunk($array, 3));
?>
Output
Array
(
[0] => Array
(
[0] => a
[1] => b
[2] => c
)
[1] => Array
(
[0] => d
[1] => e
)
)
Example
<?php
echo “<pre>”;
$array = array(“FirSt” => 17, “SecOnd” => 7);
print_r(array_change_key_case($array, CASE_UPPER));
?>
Output
Array
(
[FIRST] => 17
[SECOND] => 7
)
Example
<?php
echo tanh(45);
?>
Output
1
Example
<?php
echo tan(45);
?>
Output
1.6197751905439
Example
<?php
srand(mktime());
echo(rand());
?>
Output
675098144
Example
<?php
echo sqrt(16);
?>
Output
4
Example
<?php
echo sinh(17.7);
?>
Output
24321050.753167
Example
<?php
echo sin(17.7);
?>
Output
-0.91258244979118
Example
<?php
echo round(17.7);
?>
Output
18
Example
<?php
echo rand();
?>
Output
648369316