Contents - Index


Replace (function)

Replace(sFrom, sTo, sInData, [bIgnoreCase]) : string

This function will allow you to replace any occurrences of sFrom with sTo in the string sInData. If bIgnoreCase (optional and defaults to true if left out) is true then the sFrom search is case insensitive (otherwise case sensitive). You can also use this function to delete data from a string by making sTo null. For example:
 

# Delete all - (dashes) from a string
$data = "This - is - the - end"
$data = Replace("-","",$data)


$data is now "This is the end"

Alpha List         Category List