Angel Moreno wrote: > > does it make a difference where i locate my functions? i have about 20 > functions on a single php page. function a calls function m but > function m is all the way on the bottom and function a all the way on > the top. my new programmer claims this is an issue. i need proof of > this being true or false.
in C/C++ the function must appear before it is used. That is probably where your programmer is coming from. in PHP, it does not matter. it can be anywhere in the page or included in a seperate file. the only restriction is the same as C... the function can't be defined inside another function. Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
