skip to Main Content

WordPress – How to change format number in PHP

I have the following views count function for wordpress post. However, the number that comes up is for example 2000, while I'm trying to get 2.000. Located in Functions.php add_action ('elementor/query/popular_post', function ($query) { $query->set('orderby', 'meta_value_num'); $query->set('meta_key', 'views'); }); Located…

VIEW QUESTION

PHP float output format – Apache

I've encountered some strange behavior in php, at some point PHP started to output float values with comma instead of dot. <?php echo 12.3; //outputs "12,3" to both browser and CLI And, as expected, all tracking scripts with float numbers…

VIEW QUESTION
Back To Top
Search