{"id":205,"date":"2012-02-07T10:51:09","date_gmt":"2012-02-07T10:51:09","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=205"},"modified":"2022-02-17T07:14:05","modified_gmt":"2022-02-17T07:14:05","slug":"differences-to-c-and-c","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/php\/general-php\/differences-to-c-and-c","title":{"rendered":"Differences To C and C++"},"content":{"rendered":"<h4>=== and !===<\/h4>\n<p>PHP is a loosly typed language. \u00a0For instance this is true because PHP converts to the requried types before the compare:<\/p>\n<pre><code>  if (1000 == \"+1000\")<\/code><\/pre>\n<p>To perform an exact comparison you can use this instead, which is false<\/p>\n<pre><code>  if (1000 === \"+1000\")<\/code><\/pre>\n<p>For does not equal you can also use<\/p>\n<pre><code>!==<\/code><\/pre>\n<h4>Break<\/h4>\n<p>To exit out of nested loop you can use break #; where # is the number of loops you want to exit;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=== and !=== PHP is a loosly typed language. \u00a0For instance this is true because PHP converts to the requried types before the compare: if (1000 == &#8220;+1000&#8221;) To perform an exact comparison you can use this instead, which is false if (1000 === &#8220;+1000&#8221;) For does not equal you can also use !== Break [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-205","post","type-post","status-publish","format-standard","hentry","category-general-php"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=205"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/205\/revisions"}],"predecessor-version":[{"id":206,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/205\/revisions\/206"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}