Reply to Are there static functions in PHP?

Your name:

Reply:


Posted by Peter Salzman on 11/15/05 11:26

I have two files which implement functionality in many of my web pages. Each
file uses a function named "parseArguments()" that's critical for each of the
two files.

I often include both files into one webpage, which results in a name clash
for parseArguments().

What I really would like is the concept of static functions from the C
programming language. A static function is one that has strict file scope:
no function outisde the containing module sees the function.

Is there a way to limit the "linkage" of a function to file scope only?

Thanks!
Pete

[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

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