Results 1 to 10 of 34

Thread: Day 3 - String Operations - Become PHP Expert in 30 days.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2009
    Posts
    76,596

    Default

    http://php.flashwebhost.com/sherly/world.php

    Code:
    <?php
    
    echo strlen ('Beautiful World');

  2. #2
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    Quote Originally Posted by sherlyk View Post
    http://php.flashwebhost.com/sherly/world.php

    Code:
    <?php
    
    echo strlen ('Beautiful World');
    Nice, you can directly pass string to strlen() function.

    Code:
    <?php
    
    $length = strlen ('Beautiful World');
    
    echo $length;
    Here we store the number rrturned by strlen() function to variable $length. Then echo it.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •