2581 Views
Class String provides Substrings methods to allow a new String object to be build by copying part of an current String object . Each method returns a new String object.
letters.substring (20)
With the use of Substring method that takes one integer argument. This point specifies the starting ...
Anamika Gupta
Sep 28, 2018
4272 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