How to print the variables in PHP?

  php

I’m trying to create my first app in PHP language,
but i got this problem:

 <?php
$f_name='riag';
$l_name='abderrhman';
$age=24;
$height=1.75;
$can_vote=true;
$address=array('street'=>'cheikh salah', 'city'=>'guerrara');
$state=NULL;
define('PI', 3.14);
?>
<!DOCTYPE html>
<html lang='en'>
<head>
    <meta charset='utf-8'>
    <title>Php Tutorial</title>    
</head>
<body>
    <p>Name: <?php echo $f_name .' '. $l_name; ?></p>
</body>
</html>

This is the result:
enter image description here

Source: Ask PHP

LEAVE A COMMENT