{"id":3578,"date":"2020-06-08T13:07:51","date_gmt":"2020-06-08T10:07:51","guid":{"rendered":"https:\/\/elzero.org\/?p=3578"},"modified":"2022-10-27T17:06:19","modified_gmt":"2022-10-27T14:06:19","slug":"loop-on-friends-array-challenge","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/loop-on-friends-array-challenge\/","title":{"rendered":"Loop On Friends Array"},"content":{"rendered":"<h3>\u0645\u0642\u062f\u0645\u0629 \u0639\u0646 \u0627\u0644\u062a\u062d\u062f\u064a<\/h3>\r\n\r\n<div class=\"text\">\r\n\u0642\u0645 \u0628\u0637\u0628\u0627\u0639\u0629 \u0623\u0633\u0645\u0627\u0621 \u0623\u0635\u062f\u0642\u0627\u0626\u0643 \u0645\u0646 \u062f\u0627\u062e\u0644 \u0627\u0644 Array \u0645\u0627\u0639\u062f\u0627 \u0627\u0644\u0623\u0633\u0645\u0627\u0621 \u0627\u0644\u062a\u064a \u062a\u0628\u062f\u0623 \u0628\u062d\u0631\u0641 \u0635\u063a\u064a\u0631 \u0648\u0627\u0644\u0623\u0631\u0642\u0627\u0645\r\n<\/div>\r\n\r\n<h3>\u0627\u0644\u0645\u0637\u0644\u0648\u0628<\/h3>\r\n\r\n<ul class=\"points\">\r\n  <li>\u064a\u062c\u0628 \u0639\u0644\u064a\u0643 \u0637\u0628\u0627\u0639\u0629 \u062c\u0645\u064a\u0639 \u0627\u0644\u0623\u0633\u0645\u0627\u0621 \u0627\u0644\u0645\u0648\u062c\u0648\u062f\u0629 \u0641\u064a \u0627\u0644 Array \u0645\u0627\u0639\u062f\u0627 \u0623\u064a \u0625\u0633\u0645 \u064a\u0628\u062f\u0623 \u0628\u062d\u0631\u0641 \u0635\u063a\u064a\u0631 \u0623\u0648 \u0627\u0644\u0623\u0631\u0642\u0627\u0645<\/li>\r\n  <li>\u064a\u062c\u0628 \u0639\u0644\u064a\u0643 \u0637\u0628\u0627\u0639\u0629 \u0631\u0642\u0645 \u0643\u0644 \u0634\u062e\u0635 \u0628\u062d\u0633\u0628 \u062a\u0631\u062a\u064a\u0628\u0647 \u0641\u064a \u0627\u0644 Array \u0648\u062a\u0633\u062a\u062b\u0646\u064a \u0627\u0644\u0625\u0633\u0645 \u0627\u0644\u0630\u064a \u064a\u0628\u062f\u0623 \u0628\u062d\u0631\u0641 \u0635\u063a\u064a\u0631 \u0623\u0648 \u0627\u0644\u0623\u0631\u0642\u0627\u0645<\/li>\r\n  <li>\u064a\u062c\u0628 \u0639\u0644\u064a\u0643 \u0627\u0644\u062a\u0623\u0643\u062f \u0623\u0646 \u0627\u0644 Code \u0633\u0648\u0641 \u064a\u0639\u0645\u0644 \u0625\u0630\u0627 \u0642\u0645\u0646\u0627 \u0628\u062a\u063a\u064a\u064a\u0631 \u0639\u0646\u0627\u0635\u0631 \u0627\u0644 Array<\/li>\r\n<\/ul>\r\n\r\n<h3>\u0627\u0644\u062a\u062d\u062f\u064a\u0627\u062a<\/h3>\r\n\r\n<ul class=\"points\">\r\n  <li>\u0623\u0646 \u062a\u0633\u062a\u062e\u062f\u0645 <span>Foreach<\/span> \u0641\u064a \u0639\u0645\u0644 \u0627\u0644 <span>Loop<\/span> \u0625\u0630\u0627 \u0642\u0645\u062a \u0628\u0639\u0645\u0644 \u0627\u0644\u062d\u0644 \u0628\u0644\u063a\u0629 PHP<\/li>\r\n<\/ul>\r\n\r\n<h3>\u0645\u062b\u0627\u0644 \u0628\u0644\u063a\u0629 PHP<\/h3>\r\n\r\n<script type=\"text\/plain\" class=\"language-php\">\r\n\/\/ Input \r\n$myfriends = [\"Ahmed\", 20, 10, \"Sayed\", \"Ali\", \"Shaimaa\", \"ibrahim\", \"Noha\"];\r\n\r\n\/\/ Output\r\n1 - Ahmed\r\n2 - Sayed\r\n3 - Ali\r\n4 - Shaimaa\r\n5 - Noha\r\n<\/script>\r\n","protected":false},"excerpt":{"rendered":"<p>Loop On Friends Array<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[882],"tags":[557,830,572,415,781,563],"class_list":["post-3578","post","type-post","status-publish","format-standard","hentry","category-programming-challenges","tag-array","tag-friends","tag-loop","tag-php","tag-781","tag-563"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/3578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/comments?post=3578"}],"version-history":[{"count":22,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/3578\/revisions"}],"predecessor-version":[{"id":12437,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/3578\/revisions\/12437"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=3578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=3578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=3578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}