Re: concatenating < or > not working
- From: Markus <derernst@NO#SP#AMgmx.ch>
- Date: Fri, 13 Jul 2007 10:12:05 +0200
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
.
- Follow-Ups:
- Re: concatenating < or > not working
- From: Milan Krejci
- Re: concatenating < or > not working
- References:
- concatenating < or > not working
- From: Milan Krejci
- concatenating < or > not working
- Prev by Date: Re: Submit a form & go to the new page after validate
- Next by Date: Re: trouble with PHP session - i think ????
- Previous by thread: Re: concatenating < or > not working
- Next by thread: Re: concatenating < or > not working
- Index(es):
Relevant Pages
|