<?php array_key_exists(string|int|float|bool|resource|null $key, array $array): bool
<?php $pattern = "/^data:(?:image\/[a-zA-Z\-\.]+)(?:charset=\".+\")?;base64,(?P<data>.+)$/"; preg_match($pattern, str_replace(["\n", "\r"], '', $data_url), $matches); if (is_array($matches) && array_key_exists('data', $matches)) { return base64_decode($matches['data']); }
<?php public function required() { if ( ! array_key_exists($this->key, $this->command->arguments)) { throw new InvalidArgumentException( sprintf("Missing argument %d for %s", $this->key + 1, $this->getCommandName()) );
<?php $data = @exif_read_data($stream); if (!is_null($key) && is_array($data)) { $data = array_key_exists($key, $data) ? $data[$key] : false; } } catch (\Exception $e) {
<?php $data = []; if (array_key_exists('APP13', $info)) { $iptc = iptcparse($info['APP13']); if (is_array($iptc)) {
<?php } if (! is_null($key) && is_array($data)) { $data = array_key_exists($key, $data) ? $data[$key] : false; } $this->setOutput($data);
<?php public function setFileInfoFromPath($path) { $info = pathinfo($path); $this->dirname = array_key_exists('dirname', $info) ? $info['dirname'] : null; $this->basename = array_key_exists('basename', $info) ? $info['basename'] : null; $this->extension = array_key_exists('extension', $info) ? $info['extension'] : null; $this->filename = array_key_exists('filename', $info) ? $info['filename'] : null;
<?php { $info = pathinfo($path); $this->dirname = array_key_exists('dirname', $info) ? $info['dirname'] : null; $this->basename = array_key_exists('basename', $info) ? $info['basename'] : null; $this->extension = array_key_exists('extension', $info) ? $info['extension'] : null; $this->filename = array_key_exists('filename', $info) ? $info['filename'] : null;
<?php $info = pathinfo($path); $this->dirname = array_key_exists('dirname', $info) ? $info['dirname'] : null; $this->basename = array_key_exists('basename', $info) ? $info['basename'] : null; $this->extension = array_key_exists('extension', $info) ? $info['extension'] : null; $this->filename = array_key_exists('filename', $info) ? $info['filename'] : null; if (file_exists($path) && is_file($path)) {
<?php $this->dirname = array_key_exists('dirname', $info) ? $info['dirname'] : null; $this->basename = array_key_exists('basename', $info) ? $info['basename'] : null; $this->extension = array_key_exists('extension', $info) ? $info['extension'] : null; $this->filename = array_key_exists('filename', $info) ? $info['filename'] : null; if (file_exists($path) && is_file($path)) { $this->mime = finfo_file(finfo_open(FILEINFO_MIME_TYPE), $path);
<?php private function backupExists($name) { return array_key_exists($name, $this->backups); }