FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » php+html mixup in displaying multidimensional array in html tables
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: php+html mixup in displaying multidimensional array in html tables [message #176863 is a reply to message #176862] Sun, 29 January 2012 18:49 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 1/29/2012 12:41 PM, Thomas 'PointedEars' Lahn wrote:
> Jerry Stuckle wrote:
>
>> On 1/29/2012 11:15 AM, Thomas 'PointedEars' Lahn wrote:
>>> Jerry Stuckle wrote:
>>>> On 1/29/2012 9:43 AM, Thomas 'PointedEars' Lahn wrote:
>>>> > r(dot)mariotti(at)fdcx(dot)net wrote:
>>>> >> After developing numerus commercial sites over the past decade+ all
>>>> >> the php I've created is by far mostly procedural. I personally never
>>>> >> leave php and output my pages with a "print<<<EOD" and the entire
>>>> >> page follows, variaables embededded and all.
>>>> >> Easy to create, read, follow, maintain, etc.
>>>> >
>>>> > Except when you want to indent or client-side validate your code. As
> ^^^^^^^^^^^^^^^^^^^^^^^ ^^
>>>> > for the former, the EOD (or whatever delimiter you use) must be at the
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>> > *beginning of the line* and must at most followed by `;'. As for the
> ^^^^^^^^^^^^^^^^^^^^^^^
>>>> > latter, a client-side HTML validator will not see the HTML that you put
>>>> > out because to it it is PHP.
>>>> What does indenting have to do with it? And an HTML validator will
>>>> definitely see ALL the HTML you put out - because it is sent to the
>>>> client.
>>> You can't read, can you?
>>
>> A whole lot better than you, obviously. But then you one again have
>> shown you have no idea what you're talking about.
>
> No, evidently you can't read. For if you could, you would have noticed that
> indenting heredoc inevitably shifts the delimiter right from the first
> column, which creates a *syntax error*; so with heredoc you have to take
> extra care that you do not indent that line, which makes maintenance harder.
> You also have to take extra care then that the character following the
> delimiter is at most one `;'; for example, concatenation is only possible
> with the dot at the *next* line. All of that jumping through hoops for
> gaining program *inefficiency* is unnecessary if one uses the natural,
> efficient way of PHP coding with multiple PHP sections in the first place
> (with the alternative syntax if you prefer that).
>

Sure, and you have to have the test for an 'if' statement enclosed in
parentheses, and variable names must start with a '$' - and all kinds of
things. That's the syntax. But it is not less efficient - in fact, it
is much MORE efficient than your way of going in and out of PHP. The
text in the HEREDOC is parsed ONCE - when the entire script is parsed
(which must be done anyway). But you're in PHP and you stay in PHP.
Multiple sections are not "natural" nor efficient.

> And if you could also think clearly, you would have interpreted "client-side
> validate" as a validation *before* the PHP source code is deployed on the
> production server, in the source code editor, and not misconstrued it as
> validation in the browser (which is not even possible in all browsers).
>

You can't client-side validate before the PHP source code is deployed on
the server. Validating in a context-sensitive editor is much different
- but then you obviously don't understand that difference, either.

> Nuff said.
>
>
> PointedEars

I would suggest that is a good idea. You just continue show your
stoopidity and complete lack of understanding of basic PHP programming.

But you continue to do that in other newsgroups, also. So that's
nothing new.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Fast/Easy way to extract a column from multi-dimensional array?
Next Topic: Freelance PHP Developer
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 07:11:38 GMT 2024

Total time taken to generate the page: 0.04893 seconds