PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old May 10th, 2008, 10:43 PM
ahmeds_link ahmeds_link is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: Egypt
Posts: 24 ahmeds_link User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 26 m 13 sec
Reputation Power: 0
Send a message via MSN to ahmeds_link Send a message via Yahoo to ahmeds_link
Facebook
I want to print </b>

Hi there, how are you today

my question is : how can i print the html or php code without execution like this

PHP Code:
echo '<b>Hello world</b>'


i want when i call the page print

echo '<b>Hello world</b>';

not

Hello world

it that easy ?

thanks for all,

Reply With Quote
  #2  
Old May 10th, 2008, 10:53 PM
ptr2void ptr2void is offline
I haz teh codez!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: MA
Posts: 856 ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 51 m 2 sec
Reputation Power: 158
Is highlight_string what you're looking for?
Comments on this post
ahmeds_link agrees: it's good

Reply With Quote
  #3  
Old May 10th, 2008, 11:02 PM
ahmeds_link ahmeds_link is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: Egypt
Posts: 24 ahmeds_link User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 26 m 13 sec
Reputation Power: 0
Send a message via MSN to ahmeds_link Send a message via Yahoo to ahmeds_link
Facebook
Really thanks a lot Mr

Reply With Quote
  #4  
Old May 10th, 2008, 11:40 PM
ahmeds_link ahmeds_link is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: Egypt
Posts: 24 ahmeds_link User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 26 m 13 sec
Reputation Power: 0
Send a message via MSN to ahmeds_link Send a message via Yahoo to ahmeds_link
Facebook
sorry i have another quistion

i want to show 2 arrays

An example :
i have ...

PHP Code:
 $ar1 = array('aa','bb','cc','dd'); 
$ar2 = array('aaa','bbb','ccc','ddd'); 


i want to show 2 arrays in only one foreach like

PHP Code:
foreach ( ......... ){ 
  echo 
$ar1values."Knows".$ar2values
  } 


thanks a lot,

Reply With Quote
  #5  
Old May 11th, 2008, 12:30 AM
GameYin GameYin is offline
Banned
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2008
Location: Whiteford, MD
Posts: 534 GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 4 Days 23 h 22 m 54 sec
Warnings Level: 5
Reputation Power: 0
Send a message via AIM to GameYin
MySpace
Also, for the print of </b>
You can just do
PHP Code:
echo '& lt;b& gt;'

Last edited by GameYin : May 11th, 2008 at 01:30 AM.

Reply With Quote
  #6  
Old May 11th, 2008, 01:05 AM
speedbooster speedbooster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 147 speedbooster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 10 h 37 m 46 sec
Reputation Power: 0
Here!

Hi!
You can try this, if the number of elements in both the arrays is the same:

PHP Code:
 $ar1 = array('aa','bb','cc','dd');  
$ar2 = array('aaa','bbb','ccc','ddd');

for (
$i=0$i<count($ar1); $i++)
{
echo 
$ar1[$i] . " knows " $ar2[$i] . "<br />";



Thanks!
Comments on this post
ahmeds_link agrees: much thanks for you

Last edited by speedbooster : May 11th, 2008 at 01:10 AM.

Reply With Quote
  #7  
Old May 11th, 2008, 02:10 AM
ahmeds_link ahmeds_link is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: Egypt
Posts: 24 ahmeds_link User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 26 m 13 sec
Reputation Power: 0
Send a message via MSN to ahmeds_link Send a message via Yahoo to ahmeds_link
Facebook
Quote:
speedbooster


it's a good idea thank you ...

Quote:
GameYin


sorry mr but it can't be displayed

Reply With Quote
  #8  
Old May 11th, 2008, 01:08 PM
speedbooster speedbooster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 147 speedbooster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 10 h 37 m 46 sec
Reputation Power: 0
Hi!

No problem. You're welcome!

Did you find solution to your first problem?

Thanks!

Reply With Quote
  #9  
Old May 11th, 2008, 04:13 PM
ahmeds_link ahmeds_link is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: Egypt
Posts: 24 ahmeds_link User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 26 m 13 sec
Reputation Power: 0
Send a message via MSN to ahmeds_link Send a message via Yahoo to ahmeds_link
Facebook
Quote:
Did you find solution to your first problem?


yes i found it in mr "ptr2void" reply by using highlight_string()

Reply With Quote
  #10  
Old May 11th, 2008, 04:55 PM
GameYin GameYin is offline
Banned
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2008
Location: Whiteford, MD
Posts: 534 GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 4 Days 23 h 22 m 54 sec
Warnings Level: 5
Reputation Power: 0
Send a message via AIM to GameYin
MySpace
Did you take away the spaces? Because I tried printing them without the spaces on here but it turned up like < and >

Reply With Quote
  #11  
Old May 11th, 2008, 09:39 PM
ahmeds_link ahmeds_link is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: Egypt
Posts: 24 ahmeds_link User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 26 m 13 sec
Reputation Power: 0
Send a message via MSN to ahmeds_link Send a message via Yahoo to ahmeds_link
Facebook
yes it's printed <b> also , thank you

Reply With Quote
  #12  
Old May 12th, 2008, 09:03 AM
GameYin GameYin is offline
Banned
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2008
Location: Whiteford, MD
Posts: 534 GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level)GameYin User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 4 Days 23 h 22 m 54 sec
Warnings Level: 5
Reputation Power: 0
Send a message via AIM to GameYin
MySpace
Ok, because I find my way easier. When I do tutorials on stuff, I just use my method. I find it is much easier coding and it just looks cooler

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > I want to print </b>


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |