Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 07-03-2009
Member
 
Join Date: Mar 2008
Posts: 24
How to display text in PHP ?

Hello

I am learning PHP currently. I want to know how to display text in PHP can some one help me ?

Thanks
Reply With Quote
  #2  
Old 07-03-2009
Member
 
Join Date: Oct 2008
Posts: 74
Re: How to display text in PHP ?

Basic Operation in PHP, the text display can be done in different ways. We will see the easiest and fastest (in terms of processing time server) to display text. This is the "function" echo () (it is a structure of language in reality and not a function, in fact it is not compulsory to use it with parentheses).
Eg :

<? php
echo 'hello! " / / Displays the text "hello!"
>
Reply With Quote
  #3  
Old 07-03-2009
Member
 
Join Date: Mar 2008
Posts: 68
Re: How to display text in PHP ?

It's all well and good but if you want to display an apostrophe how do we do? Well just add the \ (backslash) in front of the apostrophe to add. A small example is worth a thousand words:

<? php
echo 'l \' apostrophe in the middle of \ 'a string';
>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to display text in PHP ?"
Thread Thread Starter Forum Replies Last Post
Text Messages Display Wrong Time on HTC mobile Meditation Portable Devices 4 19-01-2011 02:13 PM
Reading text file in VC++ display it in textbox molocas Software Development 1 26-07-2010 10:34 AM
Random Text Display Using JavaScript Beter 2 Burn Out Software Development 4 03-02-2010 05:52 AM
Problem of textbox that does not display text RyanInt Software Development 4 11-12-2009 05:55 PM
How to change the size of my email display text Ryan21 Technology & Internet 3 08-10-2009 10:28 PM


All times are GMT +5.5. The time now is 02:42 AM.