PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
// perhaps not the best description but...
// initialize a new class, call it $var
$var = new class();
// use $var (the class) and call the somefunction within...
$var2 = $var->somefunction('foo');
// array
$array = array('foo'=>'bar', 'moo'=>'cow');
About the class. Boss is watching over my shoulder, so I should work.
If somone else havn't replied when I got home, i'll look at it.
Try if you can figure something out with my earlier post meanwhile.
JAM wrote:-> is when you call on something using a class...
=> is usually what you use when you assign values in arrays...
Hmmm... thanks. I think I'm going to go out and pick up a new book tonight. My poor PHP book is about three years out of date and doesn't explain that very well.
For interests sake, I managed to find a really easy way to connect to the Java Servlet... it's the same as opening a file!
Now all I have to do is seriously increase my knowledge in parsing XML documents!! One step at a time!! (I'm gonna be a XML/PHP parsing expert by the end of the week!!! lol)