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
2478 Views
Function play an important role in programming language as it organise our code in a proper manner. We can use our code over and over by naming it only. The function works very similar to variable, but they are more powerful than that.
Function Syntax
<?php
function functionName() {
// ...
Anamika Gupta
Jul 10, 2018