我是Parse.com的新手&學習如何,有誰知道是否可以從Parse.com查詢數據&然後將其導出爲CSV文件使用PHP?PHP Parse.com將表導出爲CSV文件
我parse.com查詢如下:
$query = new ParseQuery("Counter");
$query->equalTo("user", $currentUser);
$result = $query->find();
print_r($result);
這給了我所有我的數據,我需要考慮到所有這些CSV文件。
我知道parse.com有一個單擊功能,允許您從表中獲取數據,但是我需要在我的網站上構建一個功能,以便客戶端可以使用它。
有沒有人有任何想法?
UPDATE:
這裏是輸出(它輸出159分的記錄,所以我只包括在第一少數)的SNIPPIT。
Array ([0] => Parse\ParseObject Object ([serverData:protected] => Array ([covers] => Array ([0] => 1)) [operationSet:protected] => Array () [estimatedData:Parse\ParseObject:private] => Array ([covers] => Array ([0] => 1)) [dataAvailability:Parse\ParseObject:private] => Array ([covers] => 1) [className:Parse\ParseObject:private] => Covers [objectId:Parse\ParseObject:private] => l6rKi7qpFX [createdAt:Parse\ParseObject:private] => DateTime Object ([date] => 2015-12-12 00:40:58.178000 [timezone_type] => 2 [timezone] => Z) [updatedAt:Parse\ParseObject:private] => DateTime Object ([date] => 2015-12-12 00:40:58.178000 [timezone_type] => 2 [timezone] => Z) [hasBeenFetched:Parse\ParseObject:private] => 1) [1] => Parse\ParseObject Object ([serverData:protected] => Array ([covers] => Array ([0] => 1)) [operationSet:protected] => Array () [estimatedData:Parse\ParseObject:private] => Array ([covers] => Array ([0] => 1)) [dataAvailability:Parse\ParseObject:private] => Array ([covers] => 1) [className:Parse\ParseObject:private] => Covers [objectId:Parse\ParseObject:private] => pKAhO2o9Yp [createdAt:Parse\ParseObject:private] => DateTime Object ([date] => 2015-12-12 00:40:57.309000 [timezone_type] => 2 [timezone] => Z) [updatedAt:Parse\ParseObject:private] => DateTime Object ([date] => 2015-12-12 00:40:57.309000 [timezone_type] => 2 [timezone] => Z) [hasBeenFetched:Parse\ParseObject:private] => 1) [2] => Parse\ParseObject Object ([serverData:protected] => Array ([covers] => Array ([0] => 1)) [operationSet:protected] => Array () [estimatedData:Parse\ParseObject:private] => Array ([covers] => Array ([0] => 1)) [dataAvailability:Parse\ParseObject:private] => Array ([covers] => 1) [className:Parse\ParseObject:private] => Covers [objectId:Parse\ParseObject:private] => 6q17n3FFyX [createdAt:Parse\ParseObject:private] => DateTime Object ([date] => 2015-12-12 00:40:56.453000 [timezone_type] => 2 [timezone] => Z)
你能告訴我們什麼的print_r($結果)輸出? – Nassim
嗨Nassim,我已經添加了輸出的摘錄,謝謝 –