Results of 271 - 280 of about 817 for return (0.022 sec.)
- メソッドのプロトタイプを (存在すれば) 取得する 3278
- « ReflectionMethod::getModifiers ReflectionMethod::invoke » PHP Manual ReflectionMethod メソッド
...
ass Hello { public function sayHelloTo ( $name ) { return 'Hello ' . $name ; } } class HelloWorld extends He ...
llo { public function sayHelloTo ( $name ) { return 'Hello world: ' . $name ; } } $reflectionMethod = ...
-
https://man.plustar.jp/php/reflectionmethod.getprototype.html
- [similar]
- Returns the result of applying a callback to each value 3245
- « Ds\Map::last Ds\Map::merge » PHP Manual Map Returns the result of applying a callback to each
...
value Ds\Map::map (PECL ds >= 1.0.0) Ds\Map::map — Returns the result of applying a callback to each value 説 ...
public Ds\Map::map ( callable $callback ): Ds\Map Returns the result of applying a callback function to eac ...
pply to each value in the map. The callable should return what the key will be mapped to in the resulting ma ...
print_r ( $map -> map (function( $key , $value ) { return $value * 2 ; })); print_r ( $map ); ?> 上の例の出力 ...
-
https://man.plustar.jp/php/ds-map.map.html
- [similar]
- 例 3245
- « 定義済み定数 エラー処理関数 » PHP Manual エラー処理 例 例 エラー処理機能を PHP で使用するための
...
ect parameters, arrays expected" , E_USER_ERROR ); return NULL ; } if ( count ( $vect1 ) != count ( $vect2 ) ...
ors need to be of the same size" , E_USER_ERROR ); return NULL ; } for ( $i = 0 ; $i < count ( $vect1 ); $i ...
G ); $c2 = 0.0 ; } $d += $c2 * $c2 - $c1 * $c1 ; } return sqrt ( $d ); } $old_error_handler = set_error_hand ...
-
https://man.plustar.jp/php/errorfunc.examples.html
- [similar]
- キーを基準にし、コールバック関数を用いて配列の差を計算する 3245
- « array_diff_uassoc array_diff » PHP Manual 配列 関数 キーを基準にし、コールバック関数を用いて配
...
are_func ( $key1 , $key2 ) { if ( $key1 == $key2 ) return 0 ; else if ( $key1 > $key2 ) return 1 ; else retu ...
-
https://man.plustar.jp/php/function.array-diff-ukey.html
- [similar]
- キーを基準にし、コールバック関数を用いて 配列の共通項を計算する 3245
- « array_intersect_uassoc array_intersect » PHP Manual 配列 関数 キーを基準にし、コールバック関数
...
are_func ( $key1 , $key2 ) { if ( $key1 == $key2 ) return 0 ; else if ( $key1 > $key2 ) return 1 ; else retu ...
-
https://man.plustar.jp/php/function.array-intersect-ukey.html
- [similar]
- Get the number of rows in the result set 3245
- « cubrid_num_cols cubrid_pconnect_with_url » PHP Manual CUBRID 関数 Get the number of rows in th
...
unction can only be used for synchronous query; it returns 0 when it is used for asynchronous query. パラメー ...
ecute a prepared SQL statement cubrid_num_cols() - Return the number of columns in the result set cubrid_aff ...
ected_rows() - Return the number of rows affected by the last SQL statem ...
-
https://man.plustar.jp/php/function.cubrid-num-rows.html
- [similar]
- 文字列を PHP コードとして評価する 3245
- « die exit » PHP Manual その他の関数 文字列を PHP コードとして評価する eval (PHP 4, PHP 5, PHP 7
...
エラーになりますが、 'echo "やあ!";' は動作します。 return 文は、コードの評価をただちに終了します。 コードの実 ...
た後でも参照可能です。 戻り値 評価されるコードの中で return が コールされない限り、 eval() は null を返します。 ...
return がコールされた場合は、その値を返します。 PHP 7 以降 ...
-
https://man.plustar.jp/php/function.eval.html
- [similar]
- 指定したフィルタでデータをフィルタリングする 3245
- « filter_var_array 関数処理 » PHP Manual Filter 関数 指定したフィルタでデータをフィルタリングする
...
venNames if ( strpos ( $value , ", " ) === false ) return false ; list( $surname , $givennames ) = explode ( ...
g ( $givennames )); if ( $empty || $notstrings ) { return false ; } else { return $value ; } } $var = filter ...
-
https://man.plustar.jp/php/function.filter-var.html
- [similar]
- マジックメソッド 3245
- « オブジェクトの反復処理 finalキーワード » PHP Manual クラスとオブジェクト マジックメソッド マジ
...
this -> password ); } public function __sleep () { return array( 'dsn' , 'username' , 'password' ); } public ...
sword ); } public function __serialize (): array { return [ 'dsn' => $this -> dsn , 'user' => $this -> usern ...
-> foo = $foo ; } public function __toString () { return $this -> foo ; } } $class = new TestClass ( 'Hello ...
y [ 'var1' ]; $obj -> var2 = $an_array [ 'var2' ]; return $obj ; } } $a = new A ; $a -> var1 = 5 ; $a -> var ...
-
https://man.plustar.jp/php/language.oop5.magic.html
- [similar]
- オーバーロード 3245
- « 無名クラス オブジェクトの反復処理 » PHP Manual クラスとオブジェクト オーバーロード オーバーロー
...
if ( array_key_exists ( $name , $this -> data )) { return $this -> data [ $name ]; } $trace = debug_backtrac ...
line ' . $trace [ 0 ][ 'line' ], E_USER_NOTICE ); return null ; } public function __isset ( $name ) { echo ...
"Is ' $name ' set?\n" ; return isset( $this -> data [ $name ]); } public function ...
として示しています */ public function getHidden () { return $this -> hidden ; } } echo "<pre>\n" ; $obj = new ...
-
https://man.plustar.jp/php/language.oop5.overloading.html
- [similar]