Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8418509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:21:14+00:00 2026-06-10T02:21:14+00:00

I used php-csv-parser for to parse my csv files in my site. in my

  • 0

I used php-csv-parser for to parse my csv files in my site. in my csv file I have list of numbers for to store in table.

if I create the csv file in openoffice.org it works fine. in case I created the csv files using ms office it creates a problem.

in my csv file I have numbers like below,

1001
1002
1003
1004

if I give like,
1,1001
2,1002
3,1003

above also works fine when I store csv in openoffice.org.

but I created the above format in msoffice csv file it won’t parse correctly.

when I print that array it shows like,

Array
(
    [0] => Array
        (
            [0] => 1
            [1] => 1000000001
2
            [2] => 1000000002
3
            [3] => 1000000003
4
            [4] => 1000000004
5
            [5] => 1000000005
        )

)

it shows all the records in one array.

now I need if the csv is created in anyformat with, or normal I need to parse the values correctly.

like every data’s parse as each record, not like above.

else can you please suggest me any other csv parser?.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:21:15+00:00Added an answer on June 10, 2026 at 2:21 am

    I found the alternate CSV parser.

    try this one http://code.google.com/p/parsecsv-for-php/

    it works great. if i create datas in notepad and saved it as a CSV. that also working fine. it parse as each row as a record even i give row values with (,). like,

    1,20
    2,21
    3,22
    4,23

    it parses the file and give value as array like,

    Array
    (
        [0] => Array
            (
                [0] => 1
                [1] => 20
            )
    
        [1] => Array
            (
                [0] => 2
                [1] => 21
            )
    
        [2] => Array
            (
                [0] => 3
                [1] => 22
            )
    
        [3] => Array
            (
                [0] => 4
                [1] => 23
            )
    
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used following code for retrieving content from a csv file. <?php $fo
I am trying to convert a php/mysql generated table into a downloadable csv file.
I used php script to parse remote xml file and print output on web
I have used file uploader(used PHP) in my application. In FireFox, and Internet Explorer8
I have a php script that is reading a remote CSV file, and adding
I have a scenario where CSV files are being used to maintain data (products)
I have an issue with exporting BLOB to a csv file using php. Obviously
I have a PHP CLI script, that processes a csv file, inserting it's content
There are a few ways to read CSV files with PHP. I used to
I am importing data from csv file so I used that code <?php $path

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.