How can i get the percentage of the changes which happened?
Like
1. date 1343360810 objectId 1628
field 10 value 3
1. date 1242360811 objectId 1628
field 10 value 5
1. date 1243364812 objectId 1628
field 10 value 5
1. date 1240360814 objectId 1628
field 10 value 5
This would mean the value has ben changed 1 time in 4 objects. This would result a percentage of 25% .
My question is how can i do that in PHP.
I have Objects like this an.
[69]=>
object(stdClass)#92 (6) {
["id"]=>
string(7) "1824709"
["objectId"]=>
string(4) "1628"
["type"]=>
string(1) "0"
["field"]=>
string(2) "10"
["value"]=>
string(1) "3"
["date"]=>
string(10) "1243360814"
}
[70]=>
object(stdClass)#93 (6) {
["id"]=>
string(7) "1826225"
["objectId"]=>
string(4) "1628"
["type"]=>
string(1) "0"
["field"]=>
string(2) "10"
["value"]=>
string(1) "0"
["date"]=>
string(10) "1243360814"
}