About PHP notice:a non well formed numeric value encountered, you know how much _php tutorial

Source: Internet
Author: User
----------------------------------------------------------------------------------------------

A non well formed numeric value encountered=>

From the word surface to understand, you can probably spy on some meaning: met the formation is not very good value;

OK, we suspect that one of the parameter types is wrong, that it needs to pass in a numeric type and actually possibly a string.

------------------------@ Chenwei ----------------------------------

So, to solve this problem first to see your custom function, the parameter type passed in and the actual use is consistent.

Such as:boolimagecopymerge (resource $DST _im , resource $SRC _im , int $DST _x , int $DST _y , int $SRC _x , int $SRC _y , int $SRC _w , int $SRC _h , int $pct );

< Span class= "type" >< Span class= "Methodparam" > < Span class= "type" > Several of the specified position and width of the parameters are int (integer), if accidentally passed with the ' PX ' unit, then the error.

< Span class= "type" >< Span class= "Methodparam" > < Span class= "type" >--------------------------------------------------------------------------------------------- ---

< Span class= "type" >< Span class= "Methodparam" > < Span class= "type" > You can have several ways to manipulate data before passing in, such as:

< Span class= "type" >< Span class= "Methodparam" > < Span class= "type" > $str = ' 1px ';

< Span class= "type" >< Span class= "Methodparam" > <   Span class= "type" >echo intval ($STR); 1

< Span class= "type" >< Span class= "Methodparam" > < Span class= "type" >echo RTrim ($str, ' px '); 1

------------------------------------------------------------------------------------------------

http://www.bkjia.com/PHPjc/814841.html www.bkjia.com true http://www.bkjia.com/PHPjc/814841.html techarticle ----------------------------------------------------------------------------------------------A Non Well Formed numeric value encountered= from the word surface to understand, can probably spy ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.