Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $prices = Prices::model()->findAll();
- foreach($prices as $item)
- {
- echo $item->id . ' ' . $item->price;
- $item->price = preg_replace("/[^0-9]/", "", $item->price);
- $item->save(false);
- echo ' ' . $item->price . '<br>';
- }
Advertisement
Add Comment
Please, Sign In to add comment