PHP hebrevc() Function
In this chapter you will learn:
- Definition for PHP hebrevc() Function
- Syntax for PHP hebrevc() Function
- Parameter for PHP hebrevc() Function
- Return for PHP hebrevc() Function
- Example - Reverse the display of Hebrew characters, and convert new lines
Definition
The hebrevc() function converts Hebrew text from a right-to-left flow to a left-to-right flow. It also converts new lines (\n) into <br>.
Syntax
PHP hebrevc() Function has the following syntax.
hebrevc(string,maxcharline)
Parameter
Parameter | Is Required | Description |
---|---|---|
string | Required. | A Hebrew text |
maxcharline | Optional. | Maximum characters for each line. hebrev() will avoid breaking words if possible |
Return
PHP hebrevc() Function returns the visual string
Example 1
Reverse the display of Hebrew characters, and convert new lines(\n) into <br>:
<?php
echo hebrevc("");
?>
Next chapter...
What you will learn in the next chapter:
- Definition for PHP hex2bin() Function
- Syntax for PHP hex2bin() Function
- Parameter for PHP hex2bin() Function
- Return for PHP hex2bin() Function
- Example - decodes a hexadecimally encoded binary string
Home » PHP Tutorial » PHP String Functions