Posted by Anonymous Fri 9th Feb 2007 17:00 - Syntax is PHP - 164 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers
PHP parser reported the following syntax error in this post:
Parse error: syntax error, unexpected T_PUBLIC in post on line 1
  1. public function sortDescription($model, $iterA, $iterB)
  2. {
  3.     $descA = $model->get_value($iterA, DESC_COLUMN_NUM);
  4.     $descB = $model->get_value($iterB, DESC_COLUMN_NUM);
  5.  
  6.     if ($descA == $descB) {
  7.         $priceA = model->get_value($iterA, PRICE_COLUMN_NUM);
  8.         $priceA = model->get_value($iterA, PRICE_COLUMN_NUM);
  9.  
  10.         if ($priceA == $priceB) {
  11.             // ....
  12.         }
  13.         return ($priceA < $priceB ? -1 : 1);
  14.     }
  15.  
  16.     return ($descA < $descB ? -1 : 1);
  17. }

PermaLink to this entry https://pastebin.co.uk/10169
Posted by Anonymous Fri 9th Feb 2007 17:00 - Syntax is PHP - 164 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers

 

Comments: 0