Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to use of join() function in php.?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 121
    Comment on it

    What is use of join() function.?
    The join() function returns a string from the elements of an array.
    The join() function alias of implode() function.

    Syntax of strtolower() function:

    join(" ",array)

    You can see below example of join() function in php.

    ?php>
    //here $Getarr is a array name
    $Getarr = array('Hi','Joe!','Well','Done!');
    //now call join() with separator
    echo join(" ",$Getarr)."<br>";
    //here call join finctiom with + sign
    echo join("+",$Getarr)."<br>";
    
    ?>
    

    Output of above code will be as following:-

    1-Hi Joe! Well Done!
    2-Hi+Joe!+Well+Done!

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: