J7mbo / twitter-api-php

The simplest PHP Wrapper for Twitter API v1.1 calls
MIT License
1.82k stars 802 forks source link

Allow overriding of curl options #204

Closed emmetog closed 7 years ago

emmetog commented 7 years ago

This was causing a problem because even if the user specified a curl option it was ignored because the value in the "defaults array" overrode it.

If you want to append array elements from the second array to the first array while not overwriting the elements from the first array and not re-indexing, use the + array union operator. The keys from the first array will be preserved. If an array key exists in both arrays, then the element from the first array will be used and the matching key's element from the second array will be ignored. http://php.net/manual/en/function.array-merge.php