substr function is also used to alter an existing string.
substr function is also used to alter an existing string. Correct Answer True
substr function works in a versatile way. It can also be used for altering an existing string i.e. we can edit an existing string. For example, $x= “abcdijklm” substr($x,4,0)= “efgh” ; // stuff $x with efgh without replacing any charcaters print “$x” ; //$x is now abcdefghijklm
মোঃ আরিফুল ইসলাম
Feb 20, 2025