i have html code stored in array can i print it but not render it

have you tried echoing what's $k and what's $v?

DOM ?

johnyPG, not exactly
DOM is more object oriented

yes - … so ?

I'm sorry, I don't think I got what you were asking
-.-

http://www.lepric.2bb.ru - Ôîðóì "Îáùåíèå áåç îãðàíè÷åíèé"

never mind

battleGroupBlackout charUrlr=Doomhammer&n=Tigreis classMage classId8 factionHorde factionId1 genderMale genderId0 guildName lastModified04 August 2007 level19 nameTigreis raceBlood Elf raceId10 realmDoomhammer title
Looks fine to me
And yet when I assign $v to my own vars, it doesn't work
Or at least it's not what it should be
$faction = $v;

Horde ) when I print faction

How can I convert $v into a string? Does echo do that?

hi guys what does this mean? Unknown column 'TopFriends' in 'field list'
here is my php's mysql statement -UPDATE Users SET TopFriends='afw' WHERE ID=2

it means that there isn't a column called that in the table you're referring to

It means TopFriends doesn't exist in your table

ok .

It looks as if $v is the SimpleXML object and not a string, but it's a string once echo'd
Any ideas?

__toString()
a function that allows you to define a stringification of your object.

Where's that in the manual?

it's under overloads, i think

settype($faction,"string");
That worked

do not do that
that's a terrible plan

So you're saying $faction-toString()?

don't just change the type of things, that's never a good plan
$str = (string) $xml_node; # or something

kuja, you there m?

Ah, worked
Thanks

Hey, just a quickie

can I override(overload? overwrite?) already-defined functions?
like… undef?

i have html code stored in array.. can i print it but not render it?

How do I print out all my variables for debugging?

and & characters?

try htmlspecialchars()

hi

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Comments are closed.


Blog Tags:

Similar posts: