Article View: uch.ing.dcc
Article #128Duda Php
From: VASQUEZ MORALES MAURICIO ANDRES
Date: Fri, 06 Oct 2000 00:00
Date: Fri, 06 Oct 2000 00:00
45 lines
1565 bytes
1565 bytes
Tenia una consulta sobre php.
Alguien sabe cual es algo asi como el "estandar" para la indentacion en php ?
En el fondo al indentar (el html y el codigo) cual manda a cual ?
Porque muchas veces hay traslapes entra la indentacion del html y la del php.
Me tinca que si uno estructura bien no debieran haber traslapes, pero hay veces
que son inevitables.
Tambien se que la solucion puede depender de si el codigo tiene mas html o mas
php; o aunque sea poco el php puede ser muy complejo y convenga mantener
indentado bien el php mas que el html.
Pero hay alguna regla o estandard que se pudiera seguir ??
Ideas ? Links ?
Gracias,
Mauricio Vasquez M.
-------------------------------------------------------------------------
Por ejemplo:
$i++;
?>
<table>
<tr>
<td>
<table
<tr>
<td>
<table>
<tr>
<td>
<?
if () {
$a++;
?>
</tr>
</td>
</tr>
<?
$b++;
$a=$b+7;
}
Technical Details
Message-ID:
<8rku48$f8$1@sunsite.dcc.uchile.cl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: faaa5,c8e5fcbac699e6b6,start
X-Google-Attributes: gidfaaa5,public
X-Google-Thread: fad43,c8e5fcbac699e6b6,start
X-Google-Attributes: gidfad43,public
From: VASQUEZ MORALES MAURICIO ANDRES <mvasquez@anakena.dcc.uchile.cl>
Subject: Duda Php
Date: 2000/10/06
Message-ID: <8rku48$f8$1@sunsite.dcc.uchile.cl>
X-Deja-AN: 678353957
Organization: DCC - Universidad de Chile
User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (SunOS/5.6 (sun4u))
Newsgroups: uch.ing.dcc,chile.comp.www