PHP hebrev() Function
In this chapter you will learn:
- Definition for PHP hebrev() Function
- Syntax for PHP hebrev() Function
- Parameter for PHP hebrev() Function
- Return for PHP hebrev() Function
- Example - Reverse the display of Hebrew characters
Definition
The hebrev() function converts Hebrew text from a right-to-left flow to a left-to-right flow.
Syntax
PHP hebrev() Function has the following syntax.
hebrev(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 hebrev() function returns the visual string
Example
Reverse the display of Hebrew characters:
<?php
echo hebrev("");
?>
Next chapter...
What you will learn in the next chapter:
- 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
Home » PHP Tutorial » PHP String Functions