-->

  • php strlen function






    In this blog, we will teach you about PHP strlen() function. Basically we have also teach about basics of PHP 7 . so, you will go to our previous Blog for learn about PHP and for your kind information we also have a YouTube channel, which we continuously uploaded videos of HTML, CSS, PHP and Tech Videos. so please subscribe to our YouTube channel.


    YouTube Channel :-  Kumar Atul Jaiswal



    PHP String Length 

    The PHP strlen() function returns lengths of a array


    syntax

    int strlen ( string $string )




    Example 

    <!DOCTYPE html>
    <html>
    <head>

    <titlePHP  String  Length  function</title>

    </head>
    <body>

    <h1> </h1>


    <?php

    $str =  "My self Kumar Atul Jaiswal";

    echo strlen$str );

    ?>



    </body>
    </html>



    26






    Single Quote   '  '


    we can create a PHP string length by single quote. Here is the example below but what Happened Next ?





    Example 

    <!DOCTYPE html>
    <html>
    <head>

    <title> PHP  String  Length  function</title>

    </head>
    <body>

    <h1> </h1>


    <?php

    $str =  ' My self Kumar Atul Jaiswal ';

    echo strlen ( $str );



    </body>
    </html>



    26

    It's a work with single quote.




    NOTE :- Video on This Topic :-  Soon





    Have a Nice Stay Here : - )

  • 0 comments:

    Post a Comment

    For Any Tech Updates, Hacking News, Internet, Computer, Technology and related to IT Field Articles Follow Our Blog.