★ wanayoo — archive 1999 http://www.php.net/manual/ja/function.strrev.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to 文字列
Quick Reference
English version of this pageGerman version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
文字列
* AddCSlashes
* AddSlashes
* bin2hex
* Chop
* Chr
* chunk_split
* convert_cyr_string
* count_chars
* crc32
* crypt
* echo
* explode
* flush
* get_html_translation_table
* get_meta_tags
* hebrev
* hebrevc
* htmlentities
* htmlspecialchars
* implode
* join
* levenshtein
* ltrim
* md5
* Metaphone
* nl2br
* ob_start
* ob_get_contents
* ob_end_flush
* ob_end_clean
* ob_implicit_flush
* Ord
* parse_str
* print
* printf
* quoted_printable_decode
* QuoteMeta
* rtrim
* sscanf
* setlocale
* similar_text
* soundex
* sprintf
* strcasecmp
* strchr
* strcmp
* strcspn
* strip_tags
* StripCSlashes
* StripSlashes
* stristr
* strlen
* str_pad
* strpos
* strrchr
* str_repeat
* strrev
* strrpos
* strspn
* strstr
* strtok
* strtolower
* strtoupper
* str_replace
* strtr
* substr
* substr_count
* substr_replace
* trim
* ucfirst
* ucwords
Manual: strrev
View the source code for this pageSearch the site



Previous page
 str_repeat
 Updated
Mon, 14 Aug 2000
strrpos 
Next page


strrev

(PHP3 , PHP4 )

strrev -- 文字列を逆順にする

説明

string strrev (string string)

stringを逆順にして返します。


User Contributed Notes: strrev


matthias@virtual-volume.com
23-Dec-1999 10:04
Look out, folks: the PHP4b3 implementation does an internal call by reference, so that your parameter value also changes to the evaluated reversed string:

<PRE>
$org = "1234";
$rev = strrev($org);
</PRE>

results in:

<PRE>
$org == $rev == "4321";
</PRE>

Thanks to Thies, who just fixed it!



 About Notes


Previous page
 str_repeat
 Updated
Mon, 14 Aug 2000
strrpos 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.