----------------------------------------------------------------------------------------------
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 ...