adahas - portfolio

Notice: Content displayed under the adahas.com portfolio were developed for third parties who paid for the specific work to be done. Hence using this content without authorization of their respective owners is strictly prohibited. Additionally, the content displayed in this portforlio are not for sale, hence those will not be given out to anybody who requests them for free or for payment. However, if you are interested in getting a similar work done, please feel free to contact myself, where I will be able to provide you a solution to meet the requirements you bring in. Note that all 3rd party content such as images, videos, etc. displayed on this portforlio are property of their respective owners.

excel-csv-read-via-php

This is a script written to safely read csv files created from excel in to a php array by handling the quotations properly.

Input:
Name,Address,City,Zipcode,State,Country,Main Phone,Description
Name 1,Address 1,City 1,Zipcode,State,US,1234567890,"<a href=""http://www.website1.com"">"
Name 2,Address 2,City 2,Zipcode,State,US,1234567890,"<a href=""http://www.website2.com"">"
Name 3,Address 3,City 3,Zipcode,State,US,1234567890,"<a href=""http://www.website3.com"">"
Name 4,Address 4,City 4,Zipcode,State,US,1234567890,"<a href=""http://www.website4.com"">"
Name 5,Address 5,City 5,Zipcode,State,US,1234567890,"<a href=""http://www.website5.com"">"
                
Output:
Array
(
    [0] => Array
        (
            [0] => Name
            [1] => Address
            [2] => City
            [3] => Zipcode
            [4] => State
            [5] => Country
            [6] => Main Phone
            [7] => Description
        )

    [1] => Array
        (
            [0] => Name 1
            [1] => Address 1
            [2] => City 1
            [3] => Zipcode
            [4] => State
            [5] => US
            [6] => 1234567890
            [7] => <a href="http://www.website1.com">
        )

    [2] => Array
        (
            [0] => Name 2
            [1] => Address 2
            [2] => City 2
            [3] => Zipcode
            [4] => State
            [5] => US
            [6] => 1234567890
            [7] => <a href="http://www.website2.com">
        )

    [3] => Array
        (
            [0] => Name 3
            [1] => Address 3
            [2] => City 3
            [3] => Zipcode
            [4] => State
            [5] => US
            [6] => 1234567890
            [7] => <a href="http://www.website3.com">
        )

    [4] => Array
        (
            [0] => Name 4
            [1] => Address 4
            [2] => City 4
            [3] => Zipcode
            [4] => State
            [5] => US
            [6] => 1234567890
            [7] => <a href="http://www.website4.com">
        )

    [5] => Array
        (
            [0] => Name 5
            [1] => Address 5
            [2] => City 5
            [3] => Zipcode
            [4] => State
            [5] => US
            [6] => 1234567890
            [7] => <a href="http://www.website5.com">
        )

)