21:15 < xsi> Voziv why <?= $y; ?>; inclusion does work? Is <?= an operator (I'm
not sure but call it an "operator" because it begins with html tag
< then php's ? and then ..or it may already be a php territory)
21:15 < Zeluboba> i asked, someone answered. But you still trying to discuss
something
21:15 <@caffinated> I'm not here to argue the relative merits of design
decisions. you asked a question, I answered it. Continue
to act like you're 12 and you'll leave./
21:16 < xsi> <?=
21:17 <@caffinated> xsi: it's more like a language construct.
21:18 -!- Rev|SleepingFox is now known as TheReverend403
21:19 < phplatypus> <?= 'This ', 'is ', fun() ?>
21:19 < xsi> So there are language constructs , and a language construct from
this category <?= is for assigning variables
21:19 <@caffinated> that doesn't assign variables
21:19 <@caffinated> it's outputs them
21:20 <@caffinated> well, it outputs strings is more accurate
21:20 < xsi> Comparing to echo which outputs it also transfers to js
21:20 <@caffinated> that makes no sense
21:21 <@caffinated> <?=$foo and <? echo $foo; are equivalent
21:22 < xsi> so it's for representation that's variable (it could be an
explanation)
21:22 <@caffinated> it's just a shorthand echo.
21:22 <@caffinated> I'm not sure why this is hard to understand.
21:22 < phplatypus> xsi, you can think of this as an alias to echo.
21:22 < phplatypus> echo 'This ', 'is ', fun();
21:23 <@caffinated> it's even directly in the echo manpage: "echo also has a
shortcut syntax, where you can immediately follow the
opening tag with an equals sign. Prior to PHP 5.4.0, this
short syntax only works with the short_open_tag
configuration setting enabled."
21:29 < xsi>
http://bpaste[dot]net/show/435113/ It was mine with echo as a
non-shorthand variant (keeping short names and no newlines for
future chat first-see).
21:29 <@caffinated> <?php =str_replace
21:29 <@caffinated> you can't do that
21:29 < xsi> good
21:29 <@caffinated> it has to be <?=str_replace
21:29 < xsi> =<? echo
21:30 < xsi> =<?php echo ...
21:30 <@caffinated> <? <?php or <?=
21:30 < xsi> x=
21:30 < salathe> <:3_)~~
21:34 < bayleaf> <:3_)~~ (that looks like the name of a folder on my mother in
law's desktop)
21:34 < xsi> confused, i'm reading my variant: From JavaScript to php my road
is "an /ˈɛks/ and equals sign and left-angle bracket then a
question mark" (and why on Earth only after).
21:36 < xsi> ...only after I do write (in php's part). (I could now just
remember it for granted to use in such a way , period). someone
have an explanation?
21:36 < xsi> has* (bad english)
21:38 < phplatypus> xsi, in other words:
https://dpaste[dot]de/Rc3X