I have looked through the manual but have not found an answer to this.
When making an object in Pascal/Delphi, there is a with command that can be used to shorten method and variable calls:
for example, say you have a class called shop.
this:
$abc=$shop->alphabet;
$123=$shop->numbers(1, 2);
$shop->Name="fubar";
becomes this:
with shop do {
-$abc=alphabet;
$123=numbers(1, 2);
Name="fubar";
}
obviously the syntax is wrong but you get the point. Is there anby way to do this in php?