Hi,
I am sohel once again. Today I will describe to u how can we show a value with php.
There are three way to write something with php.
1. echo
2. printf();
3
Describe:
1. we can write the any value of variable & even string through "echo" in php.
e.g.,
Output: It is working.
// suppose $v=20
Output: Your amount is: 20
However , If we use single quote ' ' then output will be such:
// suppose $v=20
Output: Your amount is: $v
2. print(), printf() are generally used for formatted output.
Output: Your amount is: 20
Your amount is: 20.00
3. This method is
Such as,
output: You are a great painter
So these are the processes for showing values through php.
OK. See u later on another topic.
Thursday, July 17, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment