« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 30 for abcdef (0.003 sec.)
文字列の一部分を返す 14004
« strtr substr_compare » PHP Manual String 関数 文字列の一部分を返す 検索 substr (PHP 4, PHP 5, PHP 7, PHP 8) substr — 文字列の一部分を返す 説明 function substr ( string $string , int $offset , ? int $length = null ): string 文字列 string の ... offset が 0 以上の場合、返される文字列は、 string の 0 から数えて offset 番目から始まる文字列となります。 例えば、文字列' abcdef 'において位置 0 にある文字は、' a 'であり、 位置 2 には' c 'があります。 offset が負の場合、返される文字列は、 string の後 ... なります。 string の長さが offset 文字より短い場合は、 空の文字列が返されます。 例1 負の offset の使用 <?php echo substr ( "abcdef" , - 1 ), PHP_EOL ; // "f" を返す echo substr ( "abcdef" , - 2 ), PHP_EOL ; // "ef" を返す echo substr ( "abcdef" , - 3 , ... または null の場合は、 offset の位置から文字列の最後までの部分文字列を返します。 例2 負の length の使用 <?php echo substr ( "abcdef" , 0 , - 1 ), PHP_EOL ; // "abcde" を返す echo substr ( "abcdef" , 2 , - 1 ), PHP_EOL ; // "cde" を返す echo substr ( "abc ...
https://man.mtool.work/php/8.3/function.substr.html
文字列の一部分を返す 13939
« strtr substr_compare » PHP Manual String 関数 文字列の一部分を返す 検索 substr (PHP 4, PHP 5, PHP 7, PHP 8) substr — 文字列の一部分を返す 説明 function substr ( string $string , int $offset , ? int $length = null ): string 文字列 string の ... offset が 0 以上の場合、返される文字列は、 string の 0 から数えて offset 番目から始まる文字列となります。 例えば、文字列' abcdef 'において位置 0 にある文字は、' a 'であり、 位置 2 には' c 'があります。 offset が負の場合、返される文字列は、 string の後 ... なります。 string の長さが offset 文字より短い場合は、 空の文字列が返されます。 例1 負の offset の使用 <?php echo substr ( "abcdef" , - 1 ), PHP_EOL ; // "f" を返す echo substr ( "abcdef" , - 2 ), PHP_EOL ; // "ef" を返す echo substr ( "abcdef" , - 3 , ... または null の場合は、 offset の位置から文字列の最後までの部分文字列を返します。 例2 負の length の使用 <?php echo substr ( "abcdef" , 0 , - 1 ), PHP_EOL ; // "abcde" を返す echo substr ( "abcdef" , 2 , - 1 ), PHP_EOL ; // "cde" を返す echo substr ( "abc ...
https://man.mtool.work/php/8.3/function.substr.html
イテレータを追加する 8691
« AppendIterator AppendIterator::__construct » PHP Manual AppendIterator イテレータを追加する 検索 AppendIterator::append (PHP 5 >= 5.1.0, PHP 7, PHP 8) AppendIterator::append — イテレータを追加する 説明 public function AppendIterator::appe ... $iterator -> append ( $array_b ); foreach ( $iterator as $current ) { echo $current ; } ?> 上の例の出力は以下となります。 abcdef 参考 AppendIterator::__construct() - AppendIterator を作成する 関連キーワード: AppendIterator append iterator イテレータ c ... onstruct ArrayIterator current Iterator foreach abcdef 参考 ...
https://man.mtool.work/php/8.3/appenditerator.append.html
イテレータを追加する 8626
« AppendIterator AppendIterator::__construct » PHP Manual AppendIterator イテレータを追加する 検索 AppendIterator::append (PHP 5 >= 5.1.0, PHP 7, PHP 8) AppendIterator::append — イテレータを追加する 説明 public function AppendIterator::appe ... $iterator -> append ( $array_b ); foreach ( $iterator as $current ) { echo $current ; } ?> 上の例の出力は以下となります。 abcdef 参考 AppendIterator::__construct() - AppendIterator を作成する 関連キーワード: AppendIterator append iterator array イテレ ... ータ new construct ArrayIterator current Search function Iterator void パラメータ 戻り値 php foreach echo abcdef 参考 ...
https://man.mtool.work/php/8.3/appenditerator.append.html
文字列の長さを得る 8545
« stristr strnatcasecmp » PHP Manual String 関数 文字列の長さを得る 検索 strlen (PHP 4, PHP 5, PHP 7, PHP 8) strlen — 文字列の長さを得る 説明 function strlen ( string $string ): int 与えられた string の長さを返します。 パラメータ string 長さ ... を調べる文字列。 戻り値 string の長さをバイト単位で返します。 例 例1 strlen() の例 <?php $str = 'abcdef' ; echo strlen ( $str ), PHP_EOL ; // 6 $str = ' ab cd ' ; echo strlen ( $str ), PHP_EOL ; // 7 ?> 注意 注意 : strlen() が ... ード: strlen 長さ string str バイト 単位 echo 文字数 stristr Search strnatcasecmp String function int パラメータ 戻り値 php abcdef ab cd ...
https://man.mtool.work/php/8.3/function.strlen.html
文字列の長さを得る 8545
« stristr strnatcasecmp » PHP Manual String 関数 文字列の長さを得る 検索 strlen (PHP 4, PHP 5, PHP 7, PHP 8) strlen — 文字列の長さを得る 説明 function strlen ( string $string ): int 与えられた string の長さを返します。 パラメータ string 長さ ... を調べる文字列。 戻り値 string の長さをバイト単位で返します。 例 例1 strlen() の例 <?php $str = 'abcdef' ; echo strlen ( $str ), PHP_EOL ; // 6 $str = ' ab cd ' ; echo strlen ( $str ), PHP_EOL ; // 7 ?> 注意 注意 : strlen() が ... () - 文字列の文字数を返す mb_strlen() - 文字列の長さを得る 関連キーワード: strlen バイト 単位 文字数 stristr strnatcasecmp abcdef 参考 count Countable grapheme 書記素 iconv ...
https://man.mtool.work/php/8.3/function.strlen.html
データを既存のアイテムに追記する 8204
« Memcached::addServers Memcached::appendByKey » PHP Manual Memcached データを既存のアイテムに追記する 検索 Memcached::append (PECL memcached >= 0.1.0) Memcached::append — データを既存のアイテムに追記する 説明 public function Memcached::app ... ' , 'abc' ); $m -> append ( 'foo' , 'def' ); var_dump ( $m -> get ( 'foo' )); ?> 上の例の出力は以下となります。 string(6) "abcdef" 参考 Memcached::appendByKey() - 指定したサーバーでデータを既存のアイテムに追記する Memcached::prepend() - 既存のアイテムの ... ppend 圧縮 appendByKey addServers memcached 強制 理由 挙動 操作 可能性 格納先 キー 成功 addServer localhost setOption dump abcdef 参考 サーバー prepend 付加 ...
https://man.mtool.work/php/8.3/memcached.append.html
文字列内の部分文字列が最初に現れる場所を見つける 8139
« strpbrk strrchr » PHP Manual String 関数 文字列内の部分文字列が最初に現れる場所を見つける 検索 strpos (PHP 4, PHP 5, PHP 7, PHP 8) strpos — 文字列内の部分文字列が最初に現れる場所を見つける 説明 function strpos ( string $haystack , string ... りませんでした" ; } ?> 例3 オフセットの使用 <?php // オフセット以前の内容を無視して文字を探すこともできます。 $newstring = 'abcdef abcdef' ; $pos = strpos ( $newstring , 'a' , 1 ); // $pos は 0 ではなく 7 となります。 echo $pos , PHP_EOL ; ?> 注意 注意 ... 最初 strpos offset 場所 haystack 数値 開始 strpbrk 推奨 明示 論理 可能性 評価 演算子 サポート 期待 else オフセット newstring abcdef 大文字 小文字 ...
https://man.mtool.work/php/8.3/function.strpos.html
文字列の一部を得る 7993
« mb_substitute_character mb_substr_count » PHP Manual マルチバイト文字列 関数 文字列の一部を得る 検索 mb_substr (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) mb_substr — 文字列の一部を得る 説明 function mb_substr ( string $string , int $start , ? ... が非負である場合に返される文字列は、 string の start 文字 目以降の文字列となります (ゼロから数えます)。 たとえば、文字列 ' abcdef ' の 0 文字目は ' a ' で、 2 文字目は ' c ' のようになります。 start が負の数の場合に返される文字列は、 string の後ろから数 ... インデックス エンコーディング length マルチバイト 文字数 省略 内部 Unicode コード ポイント substitute character count 最初 abcdef 最大 最後 履歴 不正 mbstring 解釈 ...
https://man.mtool.work/php/8.3/function.mb-substr.html
文字列の一部を得る 7928
« mb_str_split mb_strimwidth » PHP Manual マルチバイト文字列 関数 文字列の一部を得る 検索 mb_strcut (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) mb_strcut — 文字列の一部を得る 説明 function mb_strcut ( string $string , int $start , ? int $length = ... が非負である場合に返される文字列は、 string の start バイト 目以降の文字列となります (ゼロから数えます)。 たとえば、文字列 ' abcdef ' の 0 バイト目は ' a ' で、 2 バイト目は ' c ' のようになります。 start が負の場合に返される文字列は、 string の後ろから数 ... g substr マルチバイト 単位 エンコーディング 切り出し 挙動 絶対値 省略 内部 split strimwidth 抽出 方法 最初 結果的 取り出し abcdef 最後 履歴 ...
https://man.mtool.work/php/8.3/function.mb-strcut.html
PREV 1 2 3 NEXT