• PHP Video Tutorials

PHP - Function Str Rot13



Syntax

string str_rot13 ( string $str )

Definition and Usage

It is used to perform the rot13 transform on a string

Return Values

It returns the ROT13 version of the given string

Parameters

Sr.No Parameters & Description
1

string

It contains the information about input string

Example

Try out the following example

<?php
   echo str_rot13('PHP 7'); 
?>

This will produce following result −

CUC 7
php_function_reference.htm
Advertisements