Lines Matching refs:value
47 foreach ($message['headers'] as $name => $value) {
49 $result = array_merge($result, $value);
58 * Gets a header value from a message as a string or null
62 * using commas into a single string return value.
76 * Returns the first header value from a message as a string or null. If
78 * function will return the first value in the list.
83 * @return string|null Returns the value as a string if found.
88 foreach ($message['headers'] as $name => $value) {
90 // Return the match itself if it is a single value.
91 $pos = strpos($value[0], ',');
92 return $pos ? substr($value[0], 0, $pos) : $value[0];
111 foreach ($message['headers'] as $name => $value) {
164 * Replaces any existing case insensitive headers with the given value.
168 * @param array $value Value to set.
172 public static function setHeader(array $message, $header, array $value)
175 $message['headers'][$header] = $value;
285 * Debug function used to describe the provided value type and class.
324 * Returns a proxied future that modifies the dereferenced value of another
350 * @param mixed $value Optional value
354 public static function getDebugResource($value = null)
356 if (is_resource($value)) {
357 return $value;