Date: 01/24/01
- Next message: Marten Gustafsson: "RE: [PHP-DEV] Additional argument in funtion file($a, $b)"
- Previous message: Edin Kadribasic: "[PHP-DEV] Bug #8732"
- Next in thread: Marten Gustafsson: "RE: [PHP-DEV] Additional argument in funtion file($a, $b)"
- Reply: Marten Gustafsson: "RE: [PHP-DEV] Additional argument in funtion file($a, $b)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
dear all
having seen lots of applications using the following expression:
$cont = join ("", file ("test.xml"));
... i would like to propose an addtional attribute in the argument
list of the function file().
lets consider that:
$cont = file ("test.xml", FALSE) or $cont = file ("test.xml")
would be equivalent to:
$cont = file ("test.xml")
and on the other hand:
$cont = file ("test.xml", TRUE)
would be equivalent to:
$cont = join ("", file ("test.xml"))
the second argument would therefore represent an attribute, which
let one specify not only to return an ARRAY (attribute=FALSE) but
also a STRING (attribute=TRUE). adding this argument would not affect
older or current implementations or usage of the function file().
what do you think about this?
best regards, urs
-- Urs Gehrig <urs <email protected>> http://www.circle.ch-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Marten Gustafsson: "RE: [PHP-DEV] Additional argument in funtion file($a, $b)"
- Previous message: Edin Kadribasic: "[PHP-DEV] Bug #8732"
- Next in thread: Marten Gustafsson: "RE: [PHP-DEV] Additional argument in funtion file($a, $b)"
- Reply: Marten Gustafsson: "RE: [PHP-DEV] Additional argument in funtion file($a, $b)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

