LoginSignup
1
0

More than 5 years have passed since last update.

[メモ]PHP

Last updated at Posted at 2018-07-12

※自分用のメモです。

explode

(PHP 4, PHP 5, PHP 7)
文字列を文字列により分割する

array explode ( string $delimiter , string $string [, int $limit = PHP_INT_MAX ] )
// string の内容を delimiter で分割した文字列の配列を返します。

implode

(PHP 4, PHP 5, PHP 7)
配列要素を文字列により連結する

string implode ( string $glue , array $pieces )
// すべての配列要素の順序を変えずに、各要素間に glue 文字列をはさんで 1 つの文字列にして返します。 

join

(PHP 4, PHP 5, PHP 7)
implode() のエイリアス

strpos

(PHP 4, PHP 5, PHP 7)
文字列内の部分文字列が最初に現れる場所を見つける

int strpos ( string $haystack , mixed $needle [, int $offset = 0 ] )
// needle が見つかった位置を、 haystack 文字列の先頭 (offset の値とは無関係) からの相対位置で返します。 文字列の開始位置は 0。
// needle が見つからない場合は FALSE を返します。

array_pop

(PHP 4, PHP 5, PHP 7)
配列の末尾から要素を取り除く

mixed array_pop ( array &$array )
// 配列 array の最後の値を取り出して返します。 array が空 (または、配列でない) の場合、 NULL が返されます。

strlen

(PHP 4, PHP 5, PHP 7)
文字列の長さを得る

int strlen ( string $string )
// 成功した場合に string の長さ、 string が空の文字列だった場合に 0 を返します。 
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0