This function is mostly equivalent to the javascript alert function.
Array or string urls are converted to json format to allow for proper
viewing while other strings maintain their form.
Syntax
alert($string)
$string : supplied string
Sample
alert("sometext");
The result of the string above is shown below
Sample result
<script> alert('sometext') </script>
Note that the text above is directly printed to the web page