<?php
$credentials = "Authorization: OAuth oauth_consumer_key=g3PdEVqZnBgaecDGpQjODcSLm, oauth_nonce=3346472044-54KLfYYlu9P1eAXN3Le3P8hgtzt4creTd41tfJRg3PdEVqZnBgaecDGpQjODcSLm1444413587932, oauth_signature=FHnxlpBl9h3ckb8GQLfw+D3FCaU=, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1444413587, oauth_token=3346472044-54KLfYYlu9P1eAXN3Le3P8hgtzt4creTd41tfJR, oauth_version=1.0";
$arrayCredentials = explode(',',$credentials);
echo($arrayCredentials);
$needle = 'oauth_signature';
$ret = array_keys(array_filter($arrayCredentials, function($var) use ($needle){
return strpos($var, $needle) !== false;
}));
echo($ret);
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- Warning: Array to string conversion in /in/2KZSC on line 5
Array
Warning: Array to string conversion in /in/2KZSC on line 10
Array
- Output for 5.4.1 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
- Notice: Array to string conversion in /in/2KZSC on line 5
Array
Notice: Array to string conversion in /in/2KZSC on line 10
Array
- Output for 7.3.32 - 7.3.33
- ArrayArray
preferences:
176.13 ms | 401 KiB | 227 Q