/** * Returns the next value of the array. */ public static Value next(@Reference Value value) { return value.next(); }
/** * Returns the previous value of the array. */ public static Value prev(@Reference Value array) { return array.prev(); }
/** * Resets the pointer to the end */ public static Value end(@Reference Value value) { return value.end(); }
/** * Resets the pointer */ public static Value reset(@Reference Value array) { return array.reset(); }
/** * Pops off the top element */ public static Value array_pop(Env env, @Reference Value array) { return array.pop(env); }
/** * Returns the current value of the array. */ public static Value shuffle(Env env, @Reference Value array) { return array.shuffle(); }
/** * Binds variables to a prepared statement for result storage. * * @param env the PHP executing environment * @param outParams the output variables * @return true on success or false on failure */ public boolean bind_result(Env env, @Reference Value[] outParams) { return bindResults(env, outParams); }
/** * int curl_multi_exec ( resource $mh , int &$still_running ) */ public static int curl_multi_exec(Env env, CurlMultiResource multi, @Reference Value stillRunning) { return multi.execute(env, stillRunning); }
/** * Deprecated alias for {@link #mysqli_stmt_bind_param}. */ public static boolean mysqli_bind_param(Env env, @NotNull MysqliStatement stmt, StringValue types, @Reference Value[] params) { return mysqli_stmt_bind_param(env, stmt, types, params); }
/** * Binds outparams to result set. */ public static boolean mysqli_stmt_bind_result(Env env, @NotNull MysqliStatement stmt, @Reference Value[] outParams) { if (stmt == null) { return false; } return stmt.bind_result(env, outParams); }
/** * Execute a system command. */ public static String system(Env env, String command, @Optional @Reference Value result) { return exec(env, command, null, result); }
/** * XXX: not documented by PHP * * @param env * @param curls */ public static Value curl_multi_info_read(Env env, CurlMultiResource multi, @Optional @Reference Value msgsInQueue) { return multi.readInfo(env, msgsInQueue); }
/** * Deprecated alias for {@link #mysqli_stmt_bind_result}. */ public static boolean mysqli_bind_result(Env env, @NotNull MysqliStatement stmt, @Reference Value[] outParams) { return mysqli_stmt_bind_result(env, stmt, outParams); }
/** * Appends a value to the array * * @return the number of elements in the final array */ public static int array_push(Env env, @Reference Value array, Value []values) { for (Value value : values) { array.put(value); } return array.getSize(); }
/** * replaces substrings. * * @param search search string * @param replace replacement string * @param subject replacement * @param count return value */ public static Value str_ireplace(Env env, Value search, Value replace, Value subject, @Reference @Optional Value count) { return strReplace(env, search, replace, subject, count, true); }
/** * replaces substrings. * * @param search search string * @param replace replacement string * @param subject replacement * @param count return value */ public static Value str_replace(Env env, Value search, Value replace, Value subject, @Reference @Optional Value count) { return strReplace(env, search, replace, subject, count, false); }
/** * Returns the type string for the variable */ public static boolean is_callable(Env env, @ReadOnly Value v, @Optional boolean isCheckSyntaxOnly, @Optional @Reference Value nameRef) { if (nameRef.isDefault()) { nameRef = null; } return v.isCallable(env, isCheckSyntaxOnly, nameRef); }