• 主页

php

echo in php

<?php

$num=21;

echo  " the number is $num ".' <br> ';

echo '  the number is $num<br>  ';

echo ' the number is '.' <br> '.$num;


?>

output :


the number is 21
the number is $num
the number is
21

Email This BlogThis! Share to X Share to Facebook
Wednesday, June 15, 2011

Blogger templates

Blogger news

Blogroll

Archives

  • ►  2013 (219)
    • ►  December (26)
    • ►  November (19)
    • ►  October (23)
    • ►  September (16)
    • ►  August (13)
    • ►  July (25)
    • ►  June (18)
    • ►  May (18)
    • ►  April (8)
    • ►  March (19)
    • ►  February (22)
    • ►  January (12)
  • ►  2012 (231)
    • ►  December (19)
    • ►  November (21)
    • ►  October (17)
    • ►  September (13)
    • ►  August (17)
    • ►  July (18)
    • ►  June (20)
    • ►  May (21)
    • ►  April (22)
    • ►  March (26)
    • ►  February (19)
    • ►  January (18)
  • ▼  2011 (212)
    • ►  December (22)
    • ►  November (18)
    • ►  October (10)
    • ►  September (20)
    • ►  August (17)
    • ►  July (22)
    • ▼  June (23)
      • A Simple PHP class
      • roll dice in php
      • arithmetic operators in php
      • if statement or single if statement in php
      • when opendir() using it close with closedir() in php
      • PHP assignment operator
      • Check the domain extension using PHP
      • PHP Decision Making
      • Mengembalikan GRUB bootloader yang hilang pada Ubu...
      • PHP Functions
      • Proxy Class
      • Why you must do it
      • Resources
      • How to configure phpMyAdmin to address Security Is...
      • PHP tutorial introduction
      • Function for checking if file exists and if so ret...
      • Estructuras de control en php: la estructura "if"
      • DateCompare
      • PHP break statement
      • echo in php
      • Php and MySql E-Book
      • Power of Drop Down Using SafFunction V2
      • required() in php
    • ►  May (16)
    • ►  April (11)
    • ►  March (15)
    • ►  February (21)
    • ►  January (17)