Code Comments
Programming Forum and web based access to our favorite programming groups.Hi All,
Always looking for efficiency, consider the following code:
<?php
function one($arg){
if ($arg == 1){
include_once(...);
do some stuff...
}else{
do some stuff...
}
}
?>
If the above function is called with an argument value of '2', is the
'include_once' file included?
Regards,
Aaron
Post Follow-up to this messageOn Fri, 15 Oct 2004 17:58:33 -0500, "Aaron DeLoach" <aaron@deloachcorp.com>
wrote:
>Always looking for efficiency, consider the following code:
>
><?php
>function one($arg){
> if ($arg == 1){
> include_once(...);
> do some stuff...
> }else{
> do some stuff...
> }
>}
>?>
>
>If the above function is called with an argument value of '2', is the
>'include_once' file included?
No. (What happened when you tried it?)
--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Post Follow-up to this messageehrm no... please tell me this is a joke :P
Aaron DeLoach wrote:
> Hi All,
>
> Always looking for efficiency, consider the following code:
>
> <?php
> function one($arg){
> if ($arg == 1){
> include_once(...);
> do some stuff...
> }else{
> do some stuff...
> }
> }
> ?>
>
> If the above function is called with an argument value of '2', is the
> 'include_once' file included?
>
> Regards,
> Aaron
>
>
>
>
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.