Helpers\Data

Helpers\Data

Data helper contains a bunch of useful methods for looking at and altering your data.

Data::pr($data)

Returns the data inside a print_r wrapped around pre tags.

Data::vd($data)

Returns var_dump

Data::sl($data)

Returns the length of the string

Data::stu($data)

Convert to uppercase

Data::stl($data)

Convert to lower

Data::ucw($data)

Returns the string with the first letter of each word in uppercase using ucwords

Data::createKey($length = 32)

Create a key and set the length.

posted @ 2016-07-05 11:48  jinchunguang  阅读(140)  评论(0编辑  收藏  举报