PHP တွင် တန်ဖိုးများထည့်သွင်းပြီး စာကြောင်းထုတ်ပြခြင်း
အောက်ပါ variable ကို ပေးထားသည်။
<?php
$price = 19.99;
?>
အောက်ပါ format ဖြင့် စျေးနှုန်းကို ထုတ်ပြပါ။
'price: 19.99'
အောက်ပါ variable များကို ပေးထားသည်။
<?php
$name = "John";
$age = 25;
?>
�ောက်ပါ format ဖြင့် စာကြောင်းကို ထုတ်ပြပါ။
'Name: John, Age: 25 years'
အောက်ပါ variable များကို ပေးထားသည်။
<?php
$name = 'John';
$score = 95;
?>
အောက်ပါ စာကြောင်းကို ထုတ်ပြပါ။
'student John scored 95 points'
အောက်ပါ variable များကို ပေးထားသည်။
<?php
$product = "Laptop";
$price = 1299.99;
$discount = 15;
?>
အောက်ပါ format ဖြင့် ပစ္စည်းအချက်အလက်ကို ထုတ်ပြပါ။
'Product: Laptop | Price: $1299.99 | Discount: 15%'
အောက်ပါ variable များကို ပေးထားသည်။
<?php
$x = 10;
$y = 20;
$z = 30;
?>
အောက်ပါ format ဖြင့် ရလဒ်ကို ထုတ်ပြပါ။
'Sum: 10 + 20 + 30 = 60'
အောက်ပါ variable များကို ပေးထားသည်။
<?php
$day = 15;
$month = "March";
$year = 2023;
?>
အောက်ပါ format ဖြင့် ရက်စွဲကို ထုတ်ပြပါ။
'Date: March 15, 2023'