How to get number of characters in a String?
Submitted by: AdministratorYou can use the "strlen()" function to get the number of characters in a string. Here is a PHP script example of strlen():
<?php
print(strlen('It's Friday!'));
?>
This script will print:
12
Submitted by:
<?php
print(strlen('It's Friday!'));
?>
This script will print:
12
Submitted by:
Read Online PHP Developer Job Interview Questions And Answers
Top PHP Developer Questions
☺ | Described PHP? |
☺ | What is PEAR in PHP? |
☺ | How you can protect special characters in Query String? |
☺ | Described session in PHP? |
☺ | Described the functionality of the function strstr and stristr? |
Top Computer Programming Categories
☺ | Python Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | OOP Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |