Call all functions sequentially- Call only one random function
This code did not work for me in a PHP application- This worked- NOTE*- May work here but in case above syntax does not work then use this syntax.
This keyword (exit) stops the code execution after it. Statements after exit will not run.
str_replace() function is used to replace text in a string. Its first parameter takes the text to find in a given string, write text to replace the first parameter text, and the third parameter takes the string to find and replace. Syntax- Example- nl2br function
nl2br() function takes a string in its parameter. It finds \n in given string and then it breaks line whereas it finds \n in that string. See example-
I got this error in console because I was sending data with commas through get parameter in the PHP page.