|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-04-19 08:31 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 18:00:01 2025 UTC |
Description: ------------ When i attempted this code as follows my var_dump function returned bool(false). However after removing the underscores from the csv file the file function worked just fine. Reproduce code: --------------- <?php $line = file("april_15_05.csv"); var_dump($line); ?> Expected result: ---------------- /** a var_dump describing the array created by file and the comma separated values */ array(50) { [0]=> string(71) "First Name,Last Name,Weblogin,E-Mail,Pager/Cell,City,State,Webaddress " [1]=> string(112) "firstName,lastName,fultonc2,email@*.com,number,AUGUSTA,GA,http:\\www.value.com " [2]=> string(95) "NAOMI,HAMKE,hamken,email@*.com,,BEDFORD,IN,http:\\www.value.com Actual result: -------------- bool(false)