- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 1046 Articles for PHP
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
68 Views
The IntlChar::isxdigit() function checks whether the given input character is a hexadecimal digit or not. The following are the hexadecimal digits −Digit numbers (0 – 9)Letters (a – f) and (A – F)\u{0041} to \u{0046}, \u{0061} to \u{0066}, \u{FF21} to \u{FF26}\u{FF41} to \u{FF46}).SyntaxIntlChar::isxdigit( val )Parametersval − An integer values or character encoded as a UTF-8 string.ReturnThe IntlChar::isxdigit() function returns TRUE if the val is a hexadecimal digit.ExampleThe following is an example −var_dump(IntlChar::isxdigit("10")); echo ""; // Input data is character type var_dump(IntlChar::isxdigit("A")); echo ""; var_dump(IntlChar::isxdigit("a")); echo "";OutputThe following is the output −bool(true) NULL bool(true)ExampleLet us see another example −OutputThe following is ... Read More
![Samual Sam](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
67 Views
The IntlChar::iscntrl() function is used to check the given input is a control character or not. Examples include line feed (), tab (\t), etc.SyntaxIntlChar::iscntrl( val )Parametersval − An integer values or character encoded as a UTF-8 string.ReturnThe IntlChar::iscntrl() function returns TRUE if the val is a control character.ExampleThe following is an example −OutputThe following is the output −bool(true) NULL NULLExampleLet us now see another example wherein we are checking whether the entered value is a control character or not −OutputThe following is the output −bool(true) NULL
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
88 Views
The IntlChar::isprint() function checks whether the given input character is a printable character or not.SyntaxIntlChar::isprint( val )Parametersval − An integer values or character encoded as a UTF-8 string. Required!ReturnThe IntlChar::isprint() function returns TRUE if the val is a printable characterExampleThe following is an example −OutputThe following is the output −bool(true) bool(true) bool(false)ExampleLet us see another example −OutputThe following is the output −NULL bool(true) NULL
![Samual Sam](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
113 Views
The IntlChar::isalnum() function is used to check the given input is an alphanumeric character or not. The alphanumeric character is a digit or letter.Syntaxbool IntlChar::isalnum(val)Parametersval − An integer values or character encoded as a UTF-8 string.ReturnThe IntlChar::isalnum()function returns TRUE if the val is alphanumeric.ExampleThe following is an example −OutputThe following is the output −NULL NULL NULL bool(true)ExampleLet us see another example −OutputThe following is the output −bool(false) bool(true)
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
69 Views
The IntlChar::isbase() function is used to check the given input data is a base character or not.SyntaxIntlChar::isbase( val)Parametersval − An integer or character encoded as a UTF-8 string. Required.ReturnThe IntlChar::isbase() function returns TRUE if the val is a base character.ExampleThe following is an example −OutputThe following is the output −bool(true) NULL NULL NULL
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
255 Views
The IntlChar::isalpha() function is used to check the given input is an alphanumeric character or not.SyntaxIntlChar::isalpha( $val )Parametersval − An integer values or character encoded as a UTF-8 string.Required.ReturnThe IntlChar::isalpha() function returns TRUE if the val is alphanumeric character.ExampleThe following is an example −OutputThe following is the output −bool(false) bool(true)ExampleLet us see another example wherein we are checking for alphanumeric characters −OutputThe following is the output −NULL NULL NULL bool(true)
![Samual Sam](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
426 Views
Create a function to check whether a string ends with the specified string or not. The function should return TRUE on success or FALSE on failure.The following is the syntax −endFunc(str, lastStr)Consider the following parameters in it to check −str − The string to be testedlastStr − The text to be searched in the end of the specified string.ExampleThe following is an example − Live DemoOutputThe following is the output −False!
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
589 Views
Create a function to check whether a string begins with the specified string or not. The function should return TRUE on success or FALSE on failure.The following is the syntax −begnWith(str, begnStr)Consider the following parameters in it to check −str − The string to be testedbegnStr − The text to be searched in the beginning of the specified string.ExampleThe following is an example − Live Demo
![Samual Sam](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
109 Views
The connection_status() function returns the connection status.Syntaxconnection_status()ParametersNAReturnThe connection_status() function returns the following possible values. This is the status bitfield −0 - CONNECTION_NORMAL - connection is running normally1 - CONNECTION_ABORTED - connection is aborted by user or network error2 - CONNECTION_TIMEOUT - connection timed out3 - CONNECTION_ABORTED & CONNECTION_TIMEOUTExampleThe following is an example − Live Demo
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
228 Views
The mail() function allows in sending emails directly from a script.Syntaxmail(to,sub,msg,headers,parameters);Parametersto − The receiver / receivers of the emailsub − The subject of the email.msg − The message to be sent.headers − The additional headers, such as From, Cc, and Bcc.parameters − The additional parameter to the sendmail program. This was added in PHP 4.0.5.ReturnThe mail() function returns the hash value of the address parameter, or FALSE on failure.ExampleThe following is an example to send an email −