php - Notice: Undefined offset: 1 in -


  फ़ंक्शन मिल ($ a, $ b, $ c) {$ y = विस्फोट ($ b, $ a ); $ X = विस्फोट ($ c, $ y [1]); वापसी $ x [0]; }  

त्रुटि देता है

नोटिस: अपरिभाषित ऑफ़सेट: 1 में

$ y [1] सेट नहीं है।

आपको इसे विस्फोट के माध्यम से चलाने से पहले एक मूल्य की जांच करने की आवश्यकता है ।

  $ y = विस्फोट ($ b, $ a); यदि (एसेट ($ y [1])) {$ x = विस्फोट ($ c, $ y [1]); वापसी (isset ($ x [0]))? $ X [0]: ''; } अन्य {वापसी ''; }  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

c# - Create dynamic LINQ query expression at runtime which translates into a parameterized SQL query for nullable types -

cmake - cpack generates RPMs with %files entries that conflict with the RPM spec. How to fix? -