Showing posts with label php echo. Show all posts
Showing posts with label php echo. Show all posts

Saturday, April 20, 2024

php echo Function

 

PHP echo Function 

php Echo statement

php Echo statement

php Echo statement used to print the string ,multi-line strings, escaping characters, variable, array, etc. 

   Q. what is echo in php

 1] php echo is a statement is used to display the                    output.
2] php echo statement used with out parentheses echo(), and echo.
3] php echo does not return any value.
4] php echo statement multiple  by a comma(,).
5] php echo statement faster than the print .
6] php echo it returns no value or returns void.
7] php echo it display the outputs of one more strings            separated by commas.
8] echo statement is faster then print.


PHP echo 

Example ::-

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>echo php</title>

</head>
<body>
    <?php
   
        echo "hello  php echo statement";
    ?>
</body>
</html>


PHP echo 

 OUTPUT :-

php echo /output



2.Q PHP echo Multiline code 
       Example ::-

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>echo php</title>

</head>
<body>
    <?php
    //multiline code in php
        echo"hello  HI php echo statement
        This is multiline text
         php echo
              ";
    ?>
</body>
</html>

PHP echo -print Multiline String

Output   ::-

php echo /output


Read More

php system

php else of ladder 

PHP for loop

PHP Introduction

php logical operators