Hi there,
since PHP5 is out, i'm using oop very extensivly, so in some of my bigger projects i have more than 50 classes and i'm loading over 200 instances of them every pageview, so here my question: Is this making PHP very slow?
For example, what is faster:
<?php
$instance=new DataManipulation("Data");
$instance->ManipulateValue();
$instance->echoValue();
?>
or
<?php
$value="Data";
$value=ManipulateValue($wert);
echo $value;
?>
As I understand it, in C++ making an instance of a class is nearly as fast as assigning a value to a variable? Is PHP as efficent als C++ oder not?
greets, and3k