锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷

每锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟街帮拷示锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟矫碉拷 PHP 锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷为锟斤拷锟接︼拷锟斤拷锟斤拷锟街革拷锟斤拷锟斤拷锟斤拷锟斤拷母锟斤拷锟斤拷锟较拷锟斤拷锟轿匡拷锟矫猴拷锟斤拷锟斤拷锟街诧拷页锟斤拷

string.rot13锟斤拷锟斤拷 PHP 4.3.0 锟斤拷使锟矫此癸拷锟斤拷锟斤拷锟斤拷同锟斤拷锟斤拷 str_rot13()锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟叫碉拷锟斤拷锟斤拷锟捷★拷

Example #1 string.rot13

<?php
$fp 
fopen('php://output''w');
stream_filter_append($fp'string.rot13');
fwrite($fp"This is a test.\n");
/* Outputs:  Guvf vf n grfg.   */
?>

string.toupper锟斤拷锟斤拷 PHP 5.0.0 锟斤拷使锟矫此癸拷锟斤拷锟斤拷锟斤拷同锟斤拷锟斤拷 strtoupper()锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟叫碉拷锟斤拷锟斤拷锟捷★拷

Example #2 string.toupper

<?php
$fp 
fopen('php://output''w');
stream_filter_append($fp'string.toupper');
fwrite($fp"This is a test.\n");
/* Outputs:  THIS IS A TEST.   */
?>

string.tolower锟斤拷锟斤拷 PHP 5.0.0 锟斤拷使锟矫此癸拷锟斤拷锟斤拷锟斤拷同锟斤拷锟斤拷 strtolower()锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟叫碉拷锟斤拷锟斤拷锟捷★拷

Example #3 string.tolower

<?php
$fp 
fopen('php://output''w');
stream_filter_append($fp'string.tolower');
fwrite($fp"This is a test.\n");
/* Outputs:  this is a test.   */
?>

string.strip_tags锟斤拷锟斤拷 PHP 5.0.0 锟斤拷使锟矫此癸拷锟斤拷锟斤拷锟斤拷同锟斤拷锟斤拷 strip_tags()锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟叫碉拷锟斤拷锟斤拷锟捷★拷锟斤拷锟斤拷锟斤拷锟斤拷锟街革拷式锟斤拷锟秸诧拷锟斤拷锟斤拷一锟斤拷锟角猴拷 strip_tags()锟斤拷锟斤拷锟节讹拷锟斤拷锟斤拷锟斤拷锟斤拷锟狡碉拷一锟斤拷锟斤拷锟斤拷锟叫憋拷锟斤拷斜锟斤拷锟街凤拷锟斤拷锟斤拷一锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷锟叫憋拷锟斤拷锟斤拷锟斤拷锟斤拷椤�

Example #4 string.strip_tags

<?php
$fp 
fopen('php://output''w');
stream_filter_append($fp'string.strip_tags'STREAM_FILTER_WRITE"<b><i><u>");
fwrite($fp"<b>bolded text</b> enlarged to a <h1>level 1 heading</h1>\n");
fclose($fp);
/* Outputs:  <b>bolded text</b> enlarged to a level 1 heading   */

$fp fopen('php://output''w');
stream_filter_append($fp'string.strip_tags'STREAM_FILTER_WRITE, array('b','i','u'));
fwrite($fp"<b>bolded text</b> enlarged to a <h1>level 1 heading</h1>\n");
fclose($fp);
/* Outputs:  <b>bolded text</b> enlarged to a level 1 heading   */
?>