You are here: Re: concatenating < or > not working « PHP Programming Language « IT news, forums, messages
Re: concatenating < or > not working

Posted by Milan Krejci on 07/13/07 13:23

Markus napsal(a):
> Milan Krejci schrieb:
>> hello,
>> if i do $replace='<'.$key.'>'; it doesnt work as expected! i'm a
>> little confused any help?
>
> I don't see a problem there - you might want to post further
> information, about what you want to do, how the code looks like, what
> result is expected, and what the actual result is.
>
> <?php
> $key = 'key';
> $replace='<'.$key.'>';
> var_dump($replace);
> ?>
>
> The result is: string(5) "<key>"
>
> Which is as expected. Of course you need to check the HTML source, as
> your browser will display "<key>" as "", not being able to interpret the
> "key" tag.
>
> HTH
> Markus
sheesh i'm a retard. i didn't realize that! :) cheers mate.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация