JFilterOutput::stringURLSafe: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
This method processes a string and replaces all accented UTF-8 characters by unaccented ASCII-7 "equivalents", whitespaces are replaced by hyphens and the string is lowercased. | This method processes a string and replaces all accented UTF-8 characters by unaccented ASCII-7 "equivalents", whitespaces are replaced by hyphens and the string is lowercased. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 32: | Line 32: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Filter|Filter]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Filter|Filter]] | ||
* [[API17:JFilterOutput::stringURLSafe|Other versions of JFilterOutput::stringURLSafe]] | * [[API17:JFilterOutput::stringURLSafe|Other versions of JFilterOutput::stringURLSafe]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JFilterOutput::stringURLSafe | category=JFilterOutput::stringURLSafe | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 03:02, 25 March 2017
JFilterOutput::stringURLSafe
Description
This method processes a string and replaces all accented UTF-8 characters by unaccented ASCII-7 "equivalents", whitespaces are replaced by hyphens and the string is lowercased.
public static function stringURLSafe ($string)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $string | string | $input String to process |
- Returns string Processed string
- Defined on line 79 of libraries/joomla/filter/filteroutput.php
- Since

- Referenced by
See also
JFilterOutput::stringURLSafe source code on BitBucket
Class JFilterOutput
Subpackage Filter- Other versions of JFilterOutput::stringURLSafe
User contributed notes
Code Examples