Reply to Re: PHP manual syntax

Your name:

Reply:


Posted by amygdala on 04/16/07 22:20

"dangerd" <duncanelliot@breathe.com> schreef in bericht
news:1176752297.972970.5910@o5g2000hsb.googlegroups.com...
> Hi there,
>
> I have another trivial question. In the PHP manual, the description
> section often contains the following elements:
>
> Description
>
> array mysql_fetch_array ( resource $result [, int $result_type] )
>
> I am wondering what is a ( resource $result [, int $result_type] )?
> What is a result $result and why the [,int $result_type])
>
> Thanks
>

The square brackets tell you it's an optional parameter that can be passed
to the function.

And about the resource, from the PHP manual:

A resource is a special variable, holding a reference to an external
resource. Resources are created and used by special functions

In this case the resource is a result set from a sql query.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация