Not trying to bitch in anyway...because I do appreciate all the
suggestions and ideas that everyone has given.
I am new to the whole doc thing.
I just want to mention (from a newbie stand point) that the docs could
use a section (or subsection) devoted to coding example and how to lay
them out. There is only an example in chapter 8 of the howto that points
these standards out.
Is there a way that a section could be written that would outline the
example code standards?
I am also up to the challenge of doing it, however, I would need some
help.
On Mon, 2002-12-09 at 10:36, Philip Olson wrote:
> Also you may want to reread the coding standard, I
> thought the howto mentions this...
>
> if ($foo) {
> boo();
> }
>
> NOT
>
> if ($foo
> {
> boo();
> }
>
> Regards,
> Philip
>
>
>
> On 9 Dec 2002, Ray Hunter wrote:
>
> > Yeah,
> >
> > CVS moved the brace over from the main if( $ldapconn ) block...
> >
> > Let me fix it and see if i can get that over to the left...
> >
> >
> > so like this...
> >
> > if( $ldapconn )
> > {
> > // binding anonymously
> > $ldapbind = ldap_bind( $ldapconn );
> >
> > if( $ldapbind )
> > echo "LDAP bind anonymous successful...";
> > else
> > echo "LDAP bind anonymous failed...";
> > }
> >
> >
> > On Sun, 2002-12-08 at 21:03, Philip Olson wrote:
> > > Hi Ray-
> > >
> > > Do these examples work? It looks like you're
> > > missing some {braces}.
> > >
> > > Especially this one:
> > >
> > > > +if( $ldapconn )
> > > > +{
> > > > + // binding anonymously
> > > > + $ldapbind = ldap_bind( $ldapconn );
> > > > +
> > > > + if( $ldapbind )
> > > > + echo "LDAP bind anonymous successful...";
> > > > + else
> > > > + echo "LDAP bind anonymous failed...";
> > > > + }
> > >
> > > Well, it just looks aligned improperly BUT we
> > > always use braces so please add more braces :)
> > >
> > > Regards,
> > > Philip
> > >
> > > sent: offlist
> > --
> >
> > Ray Hunter
> > email: [EMAIL PROTECTED]
> > www: http://venticon.com
> >
--
Ray Hunter
email: [EMAIL PROTECTED]
www: http://venticon.com
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php