Jump to content

Recommended Posts

2 hours ago, Barand said:

What have you tried?

Suppose I have two files with large numbers of data, so I want to compare phone numbers, and create new file with matching data, 

here you can see two array data with same number "274177777", so how to compare with large data, as faster as posible in php code

1)csv1 data
$array1= Array
(
    [0] => 274177777
    [1] => 789787999
    [2] => sp
    [3] =>
    [4] => 8240
    [5] => Ris
    [6] => Ja
    [7] => Te
)
2csv2 data
$array2= Array
(
    [0] => 274177777
    [1] => 
    [2] => sp
    [3] =>
    [4] => 8240
    [5] => Ris
)

Edited by priyank199

I have no idea what I am looking in that example. Abstract examples seldom work.

Am I looking at

  • one record from each csv, or
  • eight records from the first csv and six from the second

Perhaps you could post the first 10 records from each csv so I can see what the data looks like.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.