API15

API15:JString/strrev

From Joomla! Documentation

Revision as of 01:09, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

UTF-8 aware alternative to strrev Reverse a string

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

strrev($str)
Parameter Name Default Value Description
$str String to be reversed

Returns

string The string in reverse character order

Defined in

libraries/joomla/utilities/string.php

Importing

jimport( 'joomla.utilities.string' );

Source Body

function strrev($str)
{
        jimport('phputf8.strrev');
        return utf8_strrev($str);
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples