Blog Details

how to get length from string in php


                                
                                    <h2>* PHP strlen() Function :-</h2>
<ul>
	<li><span style="font-size: 13px;">The <strong>strlen() function</strong> returns the <strong>length of a string.</strong></span></li>
</ul>
<h2>Syntax :</h2>
<strong>strlen(<em>string</em>)</strong>
<h2><strong> Example :</strong></h2>
&lt;html&gt;
&lt;body&gt;

<span style="color: #ff0000;">&lt;?php
echo strlen("Hello");
?&gt;</span>

&lt;/body&gt;
&lt;/html&gt;
<h2><strong>Output :</strong></h2>
5
                                    


Categories

Core_PHP

Latest posts

13.05.14
Implementing CRUD Operations ¶

<ul> <li>Now comes the fun part. We would like t

13.05.14
View

<ol> <li><a href="http://www.yiiframework.com/do

13.05.14
Creating Model

<ol> <li><a href="http://www.yiiframework.com/do

Get Free Quote