3317 Views
Math Functions is used to hold the integer and float value within a certain range.
1. abs :-
It is used to give the result in a positive number of distinct numbers.
<?php
echo(abs(90.7) . "<br>");
echo(abs(-78.744) . "<br>");
echo(abs(-300) . "<br>");
echo(abs(3));
?>
Output
90.7
78.744
300
3
2. ...
Anamika Gupta
Aug 03, 2018
4320 Views
String is used to handle a function it is a sequence of characters .There are some of the string with example.
1. addcslashes :-
It return the String with backslashes before the character.
<?php
echo addcslashes('Hello[ ]', 'A..z');
?>
Output
\H\e\l\l\o\[ \]
2. addslashes ...
Anamika Gupta
Jul 14, 2018