Created
August 22, 2017 12:06
-
-
Save DZuz14/314cff9508fd5b6b8efe008379514d8b to your computer and use it in GitHub Desktop.
Looking for existing values in Google Sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$get= $service->spreadsheets_values->get(SHEET_ID, 'A1:A'); | |
$emails = $get->values; | |
for($i = 0; $i < count($emails); $i++) { | |
if($emails[$i][0] === $email_two) { | |
$is_duplicate = true; | |
$range = "A".++$i.":H"; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment