Permalink
Browse files

split: removed deprecated function

used explode instead of split
  • Loading branch information...
1 parent 3ad444f commit 9eb6676a8230b621a83b4f3e9cd2f51bfe0fa5c1 Edward F Long, Jr committed Apr 18, 2012
Showing with 6 additions and 6 deletions.
  1. +1 −1 aweber_api/aweber.php
  2. +1 −1 aweber_api/aweber_collection.php
  3. +1 −1 aweber_api/aweber_entry.php
  4. +3 −3 aweber_api/oauth_application.php
View
@@ -176,7 +176,7 @@ public static function getDataFromAweberID($string) {
}
protected static function _parseAWeberID($string) {
- $values = split('\|', $string);
+ $values = explode('|', $string);
if (count($values) < 5) {
return null;
}
@@ -89,7 +89,7 @@ public function find($search_data) {
* Returns NULL if no parent entry
*/
public function getParentEntry(){
- $url_parts = split('/', $this->url);
+ $url_parts = explode('/', $this->url);
$size = count($url_parts);
#Remove collection id and slash from end of url
@@ -216,7 +216,7 @@ public function getActivity() {
* Returns NULL if no parent entry
*/
public function getParentEntry(){
- $url_parts = split('/', $this->url);
+ $url_parts = explode('/', $this->url);
$size = count($url_parts);
#Remove entry id and slash from end of url
@@ -378,10 +378,10 @@ public function createSignatureBase($method, $url, $data) {
$method = $this->encode(strtoupper($method));
$query = parse_url($url, PHP_URL_QUERY);
if ($query) {
- $url = array_shift(split('\?', $url, 2));
- $items = split('&', $query);
+ $url = array_shift(explode('?', $url, 2));
+ $items = explode('&', $query);
foreach ($items as $item) {
- list($key, $value) = split('=', $item);
+ list($key, $value) = explode('=', $item);
$data[$key] = $value;
}
}

0 comments on commit 9eb6676

Please sign in to comment.