<?php substr(string $string, int $offset, ?int $length = null): string
<?php { if (is_string($this->data)) { $mime = finfo_buffer(finfo_open(FILEINFO_MIME_TYPE), $this->data); return (substr($mime, 0, 4) != 'text' && $mime != 'application/x-empty'); } return false;
<?php if (extension_loaded('mbstring')) { $name = mb_strtoupper(mb_substr($name, 0, 1)) . mb_substr($name, 1); } else { $name = strtoupper(substr($name, 0, 1)) . substr($name, 1); } $drivername = $this->getDriverName();
<?php $reflect = new \ReflectionClass($this); $namespace = $reflect->getNamespaceName(); return substr(strrchr($namespace, "\\"), 1); } }
<?php $exif = []; $properties = $core->getImageProperties(); foreach ($properties as $key => $value) { if (substr($key, 0, 5) !== 'exif:') { continue; }
<?php continue; } $exif[substr($key, 5)] = $value; } $this->setOutput($exif);
<?php { $img = $this->manager()->make('tests/images/trim.png'); $img->encode('data-url'); $this->assertEquals('data:image/png;base64', substr($img->encoded, 0, 21)); } public function testExifReadAll()