Sanitation::remove_multiple

Sanitation::remove_multiple — Strips any adjacent identical characters to one

Description

public mixed Sanitation::remove_multiple ( string $data, string $remove )

Parameters

  1. data
    The data to remove from
  2. remove
    The character to remove

Return Values

$data

Examples

$string = 'John,, Jane, William';
echo $sanitize->remove_multiple ($string, ',');
// Result: John, Jane, William

See Also

sanitation/remove_multiple.txt · Last modified: 2010/07/21 21:46 by davids
Back to top
CC Attribution-Share Alike 3.0 Unported
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0