LUA(3) 1 LUA(3)The Lua classINTRODUCTION CLASS SYNOPSIS
Lua
Lua
Constants
o const string$Lua::LUA_VERSIONLua 5.1.4
Methods
o public mixed Lua::assign (string $name, string $value)
o public mixed Lua::call (callable $lua_func, [array $args], [int $use_self])
o public mixed Lua::__call (callable $lua_func, [array $args], [int $use_self])
o public Lua::__construct (string $lua_script_file = NULL)
o public mixed Lua::eval (string $statements)
o public string Lua::getVersion (void )
o public mixed Lua::include (string $file)
o public mixed Lua::registerCallback (string $name, callable $function)
PREDEFINED CONSTANTS
o Lua::LUA_VERSION -
PHP Documentation Group LUA(3)
Check Out this Related Man Page
ARRAYOBJECT(3) 1 ARRAYOBJECT(3)The ArrayObject classINTRODUCTION
This class allows objects to work as arrays.
CLASS SYNOPSIS
ArrayObject
ArrayObjectIteratorAggregateArrayAccessSerializableCountable
Constants
o const integer$STD_PROP_LIST1
o const integer$ARRAY_AS_PROPS2
Methods
o public ArrayObject::__construct ([mixed $input = []], [int $flags], [string $iterator_class = "ArrayIterator"])
o public void ArrayObject::append (mixed $value)
o public void ArrayObject::asort (void )
o public int ArrayObject::count (void )
o public array ArrayObject::exchangeArray (mixed $input)
o public array ArrayObject::getArrayCopy (void )
o public int ArrayObject::getFlags (void )
o public ArrayIterator ArrayObject::getIterator (void )
o public string ArrayObject::getIteratorClass (void )
o public void ArrayObject::ksort (void )
o public void ArrayObject::natcasesort (void )
o public void ArrayObject::natsort (void )
o public bool ArrayObject::offsetExists (mixed $index)
o public mixed ArrayObject::offsetGet (mixed $index)
o public void ArrayObject::offsetSet (mixed $index, mixed $newval)
o public void ArrayObject::offsetUnset (mixed $index)
o public string ArrayObject::serialize (void )
o public void ArrayObject::setFlags (int $flags)
o public void ArrayObject::setIteratorClass (string $iterator_class)
o public void ArrayObject::uasort (callable $cmp_function)
o public void ArrayObject::uksort (callable $cmp_function)
o public void ArrayObject::unserialize (string $serialized)
PREDEFINED CONSTANTS ARRAYOBJECT FLAGS
o ArrayObject::STD_PROP_LIST -Properties of the object have their normal functionality when accessed as list (var_dump, foreach,
etc.).
o ArrayObject::ARRAY_AS_PROPS -Entries can be accessed as properties (read and write).
CHANGELOG
+--------+---------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------+
| 5.3.0 | |
| | |
| | Implements Serializable. |
| | |
+--------+---------------------------+
PHP Documentation Group ARRAYOBJECT(3)
Hi
I have a script in which I have several variables
var1
var2
var3
var4
etc......
and
field1
field2
field3
field4
etc.......
The script similar to this: (6 Replies)
I have a user defined configuration file, which could contain the following type of entries:
directory_001=/a/directory/structure
pattern_001=fred*
pattern_002=*
I have a script which reads the file generically which will loop round
loop 1
genvar=”directory”
iteration=”001”
... (11 Replies)
hey guys,
I'm trying to call and modify multiple files inside the for loop, i can't get it to work...
------------------------
AFILE=/dir/a_file.txt
BFILE=/dir/b_file.txt
CFILE=/dir/c_file.txt
ADESTFILE=/dir/a_dest_file.txt
BDESTFILE=/dir/b_dest_file.txt... (6 Replies)
Hi!
All the basic linux commands, ie. echo, find, etc, are located in /bin. I have a couple of programs that have these commands pointed towards /usr/bin, ie, /usr/bin/echo (even though the actual 'echo' command is in /bin). How can I alias or redirect or link the /usr/bin to /bin just for this... (6 Replies)
Hi all!
I'm writting one script to copy a file in various folders, but there are 2 things to validate. First that the folder where i'll be cpying exists, and second that i have permissions to copy the file in it.
so far i have found the way to validate the folder exists, but when trying to... (6 Replies)
Good afternoon,
I am tearing hair out over this. It should be so simple. I have an if statement to evaluate whether or not replication is working. I am testing variables from mysql to see if they are both "Yes". I have put some echo statements in to see how far the code proceeds. It always... (6 Replies)
In BASH, how does ||: get interpreted. I know || is logical or. And I believe : evaluates to true. Can someone give a thorough explanation for this usage?
Example
for i in $IGGY
do
&& skipdb=1 || : (6 Replies)
Hi,
I am writing a script in awk trying to replace strings that are math expressions with their result.
For example, I have a file that looks like this:
5-1
32/8-1
4*12
17+1-3
I would like to get the following output:
4
3
48
15
I tried doing it the following way (using the "bc"... (8 Replies)
Sorry for the probably strangely worded title but I don't really know how else to put it.
Background context: Post processing LAMMPS simulation data.
tl;dr: I'm making two spheres collide, every defined timestep the simulation outputs a bunch of data including total energy of the particles,... (10 Replies)
OK, I'm striving to abide by all the rules this time.
Here is a fragment of my windows10/cygwin64/bash script:
export BUPLOG=$(BackupRecords --log "$src")
robocopy $(BackupRecords -mrbd "$src" --path "$src") $(BackupRecords --appSwitches "$src") "$src" "$dst" $(BackupRecords --fileSwitches... (15 Replies)
input data in a file
servic webservice.somthing 200 OK
servic1 webservice.somthing 200 OK
servic1 webservice.somthing 400 BAD REQEST
Below script is making tabular form perfectly. but there are two thing i am not able to achive
1.how can i color the complete row as red when it see '400' in... (12 Replies)
First, given this bit of code (line numbers included for reference:
59 get_all_db () {
60 #echo getting all db
61 dblist=`egrep -i "product/12" /etc/oratab |grep -v "listener"|\
62 awk -F\: '{print $1}'|sort`
63 echo list is $dblist
64 echo
65 echo
66 echo "INSTANCE_NAME ... (15 Replies)
Hello,
IBM offers a evaluation version of their XL C/C++ compiler. Unfortunatly v16.1 (from Developerworks) can not be installed on AIX 5.3 (I can not upgrade my old 32 Bit RS/6000 to a later version) and I have not found any older versions on the IBM and Developerworks pages.
Is there a... (8 Replies)