https://github.com/codler/pquery
Makes PHP more powerful, inspired from Jquery, Python and Ruby!
https://github.com/codler/pquery
Last synced: about 1 month ago
JSON representation
Makes PHP more powerful, inspired from Jquery, Python and Ruby!
- Host: GitHub
- URL: https://github.com/codler/pquery
- Owner: codler
- Created: 2010-08-07T21:31:32.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-09-01T16:23:18.000Z (over 15 years ago)
- Last Synced: 2025-01-17T21:45:11.967Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Reference
Datatypes: Array (a), Integer (i), String (s)
Global methods
get
Gets PHP value
is_a
Check if it is array
is_i
Check if it is integer
is_s
Check if it is string
length
Length of array, string
methods
List available methods
to_a
Converts to array
to_i
Converts to integer
to_s
Converts to string
Array methods
item ( index )
Get item by index from the array
add ( item )
Add item at end of array
add_last
Alias of "add"
append ( array_of_items )
Concat array_of_items at end of array
prepend
Concat array_of_items at beginning of array
remove ( & deleted_item )
Remove item at end of array
remove_first ( & deleted_item )
Remove item at beginning of array
remove_last ( & deleted_item )
Alias of "remove"
Integer methods
String methods