{"id":399,"date":"2015-11-12T10:01:12","date_gmt":"2015-11-12T10:01:12","guid":{"rendered":"http:\/\/on5tl.com\/edu\/?p=340"},"modified":"2022-05-27T10:57:02","modified_gmt":"2022-05-27T10:57:02","slug":"%d8%a7%d9%84%d9%88%d8%ad%d8%af%d8%a9-%d8%a7%d9%84%d8%ae%d8%a7%d9%85%d8%b3%d8%a92","status":"publish","type":"post","link":"https:\/\/planet-www.com\/ar\/%d8%a7%d9%84%d9%88%d8%ad%d8%af%d8%a9-%d8%a7%d9%84%d8%ae%d8%a7%d9%85%d8%b3%d8%a92\/","title":{"rendered":"\u0623\u0646\u0648\u0627\u0639 \u0627\u0644\u0645\u062a\u063a\u064a\u0631\u0627\u062a :"},"content":{"rendered":"<h3 style=\"color: #800080; text-align: right;\">\u062a\u0639\u0631\u064a\u0641 \u0627\u0644\u0645\u062a\u063a\u064a\u0631\u0627\u062a \u0648\u0623\u0646\u0648\u0627\u0639\u0647\u0627:<\/h3>\n<p style=\"text-align: right;\"><strong> \u0646\u0639\u0631\u0641 \u0627\u0644\u0645\u062a\u062d\u0648\u0644 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 var <\/strong><\/p>\n<p>[php]<\/p>\n<p>&lt;!DOCTYPE html&gt;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text\/html; charset=iso-8859-1&quot; \/&gt;<\/p>\n<p>&lt;title&gt;define variables&lt;\/title&gt;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;p id=&quot;show&quot;&gt;Old text&lt;\/p&gt;<br \/>\n&lt;script&gt;<\/p>\n<p>var x=&quot;jon&quot;;<br \/>\ndocument.getElementById(&quot;show&quot;).innerHTML =x;<br \/>\n&lt;\/script&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p>[\/php]<\/p>\n<h5 style=\"color: #800080; text-align: right;\">\u0623\u0646\u0648\u0627\u0639 \u0627\u0644\u0645\u062a\u062d\u0648\u0644\u0627\u062a :<\/h5>\n<ul>\n<li style=\"text-align: right;\">\u0623\u0631\u0642\u0627\u0645 :\n<p>[php]  var num=12365; [\/php]<\/p>\n<\/li>\n<li style=\"text-align: right;\">\u0633\u0644\u0627\u0633\u0644 :\n<p>[php]string: var name=&quot;jwmana&quot;; [\/php]<\/p>\n<\/li>\n<li style=\"text-align: right;\">\u0645\u0635\u0641\u0648\u0641\u0627\u062a :\n<p>[php] array: var names=[&quot;dyana&quot;,&quot;jwmana&quot; , &quot;fawzi&quot;];  [\/php]<\/p>\n<\/li>\n<li style=\"text-align: right;\">\u00a0\u0643\u0627\u0626\u0646\u0627\u062a :\n<p>[php]object: var fullname={ firstname:&quot;jwman&quot; , lastname:&quot;hallak&quot;}; [\/php]<\/p>\n<\/li>\n<\/ul>\n<h4 style=\"color: #800080; text-align: right;\">\u0627\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u0646\u0648\u0639 \u0627\u0644\u0645\u062a\u062d\u0648\u0644:<\/h4>\n<p>\u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062e\u0627\u0635\u064a\u0629<strong> typeof <\/strong><\/p>\n<p>[php]<\/p>\n<p>&lt;!DOCTYPE html&gt;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text\/html; charset=iso-8859-1&quot; \/&gt;<\/p>\n<p>&lt;title&gt;define variables&lt;\/title&gt;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;p id=&quot;show&quot;&gt;Old text&lt;\/p&gt;<br \/>\n&lt;script&gt;<\/p>\n<p>var x=&quot;jon&quot;;<\/p>\n<p>document.getElementById(&quot;show&quot;).innerHTML =typeof x;<br \/>\n&lt;\/script&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p>[\/php]<\/p>\n<p>\u0627\u0644\u062e\u0631\u062c \u0633\u064a\u0643\u0648\u0646 : string<\/p>\n<p>\u062c\u0631\u0628 \u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0645\u062a\u062d\u0648\u0644 x \u0625\u0644\u0649 \u0631\u0642\u0645 \u0648\u0627\u062d\u0641\u0638 \u0627\u0644\u062a\u063a\u064a\u064a\u0631\u0627\u062a \u0648 \u0644\u0627\u062d\u0638 \u062a\u063a\u064a\u0631 \u0627\u0644\u0646\u062a\u064a\u062c\u0629<\/p>\n<h4 style=\"color: #800080; text-align: right;\">\u0627\u0644\u0645\u062a\u062d\u0648\u0644 object \u0648\u0637\u0631\u064a\u0642\u0629 \u0627\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u0639\u0646\u0627\u0635\u0631\u0647:<\/h4>\n<p>\u064a\u062a\u0645 \u0627\u0644\u062a\u0639\u0631\u064a\u0641 \u0639\u0646 \u0627\u0644\u063a\u0631\u0636 \u0628\u0627\u0644\u0637\u0631\u064a\u0642\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629 :<\/p>\n<p>[php] var varname = {name:&quot;value&quot; , name:&quot;value&quot;}; [\/php]<\/p>\n<p>\u064a\u062d\u0648\u064a \u0627\u0644\u063a\u0631\u0636 \u0639\u062f\u0629 \u0639\u0646\u0627\u0635\u0631 , \u064a\u0645\u0643\u0646 \u0627\u0644\u0648\u0635\u0648\u0644 \u0644\u0623\u062d\u062f \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0639\u0646 \u0637\u0631\u064a\u0642<\/p>\n<p>[php]  varname.name; [\/php]<\/p>\n<p>[php]<br \/>\n&lt;!DOCTYPE html&gt;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text\/html; charset=iso-8859-1&quot; \/&gt;<\/p>\n<p>&lt;title&gt;objects&lt;\/title&gt;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&lt;p id=&quot;show&quot;&gt;&lt;\/p&gt;<\/p>\n<p>&lt;script&gt;<\/p>\n<p>var x = {fname:&quot;jwmana&quot; , lname:&quot;hallak&quot;};<\/p>\n<p>document.getElementById(&quot;show&quot;).innerHTML =x.fname;<\/p>\n<p>&lt;\/script&gt;<br \/>\n&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<br \/>\n[\/php]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u062a\u0639\u0631\u064a\u0641 \u0627\u0644\u0645\u062a\u063a\u064a\u0631\u0627\u062a \u0648\u0623\u0646\u0648\u0627\u0639\u0647\u0627: \u0646\u0639\u0631\u0641 \u0627\u0644\u0645\u062a\u062d\u0648\u0644 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 var [php] &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text\/html; charset=iso-8859-1&quot; \/&gt; &lt;title&gt;define variables&lt;\/title&gt; &lt;\/head&gt; &#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,11],"tags":[257,94,30,51],"class_list":["post-399","post","type-post","status-publish","format-standard","hentry","category-javascript","category-11","tag-257","tag-94","tag-30","tag-51"],"_links":{"self":[{"href":"https:\/\/planet-www.com\/ar\/wp-json\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/planet-www.com\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/planet-www.com\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/planet-www.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/planet-www.com\/ar\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":1,"href":"https:\/\/planet-www.com\/ar\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":1985,"href":"https:\/\/planet-www.com\/ar\/wp-json\/wp\/v2\/posts\/399\/revisions\/1985"}],"wp:attachment":[{"href":"https:\/\/planet-www.com\/ar\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/planet-www.com\/ar\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/planet-www.com\/ar\/wp-json\/wp\/v2\/tags?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}