[Solved] noring tags in a string
Posted: Tue Sep 08, 2009 6:35 pm
I am pretty sure its the wrong place to ask this question in... but...
I am trying to set a string to a variable.
And it works all fine, but for example if I try to make:
it doesn't echos it, it stops before the <
I understand its because it is an HTML tag starter, And I am no big expert in HTML...
I was searching for a solution for like 2 and a half hours now, and I gave up and decided to ask you guys, is there a way to ignore the tag starter when I echo it?
Oh, and second question, its pretty obvius, im just making sure:
The escape backslash ["\"] won't be part of a string?
Like if I count the charecters in the string "It/'s a beautiful day" it will result in 20 characters? or 21 (including the /)?
~dammit, in 3 hours I need to wake up for school, what am I doing?! T_T~
I am trying to set a string to a variable.
Code: Select all
<?php
$message = "bla bla bla bla";
echo "The message is: $message <br/>";
?>Code: Select all
<?php
$message = "bla bla o|-<bla bla";
echo "The message is: $message <br/>";
?>I understand its because it is an HTML tag starter, And I am no big expert in HTML...
I was searching for a solution for like 2 and a half hours now, and I gave up and decided to ask you guys, is there a way to ignore the tag starter when I echo it?
Oh, and second question, its pretty obvius, im just making sure:
The escape backslash ["\"] won't be part of a string?
Like if I count the charecters in the string "It/'s a beautiful day" it will result in 20 characters? or 21 (including the /)?
~dammit, in 3 hours I need to wake up for school, what am I doing?! T_T~