Federica Posted May 7, 2021 Share Posted May 7, 2021 Hi, After making an update, I have received this notice: Notice: A non well formed numeric value encountered in -... -on different page on line 128 : <?php $identifier = round(microtime() * 10000000); ?> on line 402 : <?php $identifier = round(microtime() * 10000000); ?> on line 2: <?php $identifier = round(microtime() * 10000000); ?> How can I fix it? Thanks so much Federica Quote Link to comment https://forums.phpfreaks.com/topic/312626-notice-a-non-well-formed-numeric-value-encountered-in/ Share on other sites More sharing options...
Barand Posted May 7, 2021 Share Posted May 7, 2021 (edited) microtime() without an argument returns a weird string format (eg "0.94624300 1620376872" ) that is not a valid number. Use microtime(true) to get a numeric value (eg 1620377011.4593). See https://www.php.net/microtime Edited May 7, 2021 by Barand Quote Link to comment https://forums.phpfreaks.com/topic/312626-notice-a-non-well-formed-numeric-value-encountered-in/#findComment-1586378 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.