文件名称:PHP的Laravel集合库.zip
文件大小:55KB
文件格式:ZIP
更新时间:2022-07-31 04:52:01
类库下载-PHP的Laravel集合库
<?php namespace Illuminate\Tests\Support; use stdClass; use ArrayAccess; use Mockery as m; use ReflectionClass; use JsonSerializable; use PHPUnit\Framework\TestCase; use Illuminate\Support\Collection; use Illuminate\Contracts\Support\Jsonable; use Illuminate\Contracts\Support\Arrayable; class SupportCollectionTest extends TestCase { public function testFirstReturnsFirstItemInCollection() { $c = new Collection(['foo', 'bar']); $this->assertEquals('foo', $c->first()); } public function testFirstWithCallback() { $data = new Collection(['foo', 'bar', 'baz']); $result = $data->first(function ($value) { return $value === 'bar'; }); $this->assertEquals('bar', $result); }PHP的Laravel集合库是获取一个集合的库,一个集合相当于一张表。
【文件预览】:
PHP的Laravel集合库
----collect-logo.png(18KB)
----src()
--------Illuminate()
----php中文网下载站.url(114B)
----composer.lock(55KB)
----phpunit.xml(625B)
----php中文网免费下载站.txt(219B)
----tests()
--------Support()
--------bootstrap.php(85B)
----.gitignore(8B)
----readme.md(2KB)
----composer.json(788B)