Brimbox Logo Brimbox Version 2.3.4 Released

purge_chars>>

Method to trim and purge control characters from a string.

Class: bb_main, called as $main

File: bb_main.php (php)

Declaration:

function purge_chars($str, $eol = true, $quotes = false)

Usage:

$string = $main->purge_chars($str);

Returns: string with control characters purged, optional EOL characters purged also.

Parameter: $str (string)
String to be checked and modified.

Parameter: $eol (optional boolean)
If true, will also purge new lines.

Parameter: $quotes (optional boolean)
If true, will also purge double quotes, typically used in column names, list names and other meta data.

Updated: 2016-06-16