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:
  #1  
Old May 10th, 2008, 10:43 PM
ahmeds_link ahmeds_link is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: Egypt
Posts: 36 ahmeds_link User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 35 m 26 sec
Reputation Power: 2
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 Beginner (1000 - 1499 posts)
 
Join Date: Dec 2003
Posts: 1,231 ptr2void User rank is Colonel (50000 - 60000 Reputation Level)ptr2void User rank is Colonel (50000 - 60000 Reputation Level)ptr2void User rank is Colonel (50000 - 60000 Reputation Level)ptr2void User rank is Colonel (50000 - 60000 Reputation Level)ptr2void User rank is Colonel (50000 - 60000 Reputation Level)ptr2void User rank is Colonel (50000 - 60000 Reputation Level)ptr2void User rank is Colonel (50000 - 60000 Reputation Level)ptr2void User rank is Colonel (50000 - 60000 Reputation Level)ptr2void User rank is Colonel (50000 - 60000 Reputation Level)ptr2void User rank is Colonel (50000 - 60000 Reputation Level)ptr2void User rank is Colonel (50000 - 60000 Reputation Level)ptr2void User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 4 Weeks 18 m 8 sec
Reputation Power: 587
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
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: Egypt
Posts: 36 ahmeds_link User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 35 m 26 sec
Reputation Power: 2
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
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: Egypt
Posts: 36 ahmeds_link User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 35 m 26 sec
Reputation Power: 2
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
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: 187 speedbooster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 50 m 53 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
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: Egypt
Posts: 36 ahmeds_link User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 35 m 26 sec
Reputation Power: 2
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: 187 speedbooster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 50 m 53 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
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: Egypt
Posts: 36 ahmeds_link User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 35 m 26 sec
Reputation Power: 2
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
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
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: Egypt
Posts: 36 ahmeds_link User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 35 m 26 sec
Reputation Power: 2
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
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



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT