diff options
Diffstat (limited to 'crates/shirabe-php-shim/src/lib.rs')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 2dbeab6..3dfadf1 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -1142,6 +1142,40 @@ pub fn r#eval(code: &str) -> PhpMixed { todo!() } +pub fn array_is_list(array: &PhpMixed) -> bool { + todo!() +} + +pub fn array_values<V: Clone>(array: &IndexMap<String, V>) -> Vec<V> { + todo!() +} + +pub fn array_splice<T>( + array: &mut Vec<T>, + offset: i64, + length: Option<i64>, + replacement: Vec<T>, +) -> Vec<T> { + todo!() +} + +pub fn array_pop_first<T>(array: &mut Vec<T>) -> Option<T> { + todo!() +} + +pub fn reset_first<T: Clone>(array: &[T]) -> Option<T> { + todo!() +} + +pub fn call_user_func<T>(callback: &str, args: &[PhpMixed]) -> T +where + T: From<PhpMixed>, +{ + todo!() +} + +pub const PHP_EOL: &str = "\n"; + pub fn call_user_func_array(callback: &str, args: &PhpMixed) -> PhpMixed { todo!() } |
