{"id":9227,"date":"2020-01-23T11:51:05","date_gmt":"2020-01-23T11:51:05","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=9227"},"modified":"2022-05-08T12:07:22","modified_gmt":"2022-05-08T12:07:22","slug":"php-important-operators-for-beginners","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/php-important-operators-for-beginners\/","title":{"rendered":"PHP 7 Essential Guide &#8211; PHP  Operators for beginners"},"content":{"rendered":"\n<p><strong>PHP operators are used to performing operations on variables and values.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Maths Operators<\/li><li>Assignment operators<\/li><li>Logical Operators<\/li><li>Increment and Decrement Operators<\/li><li>String Operators <\/li><\/ul>\n\n\n\n<p><strong>Maths Operators:-<br><\/strong> arithmetic operators are used with numerice values to perform arithmetic operators like as addition, subtraction, multiplication, division or etc.<br> ex:- <\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/215027588ac8c3cfe133bab58e96813a.js\"><\/script>\n\n\n\n<p><strong>Assignment operators:- <br><\/strong> Assignment operators are used to write a numeric value to a variable values.<\/p>\n\n\n\n<p>ex:- <\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/1079e4f5005b743771323696d622defe.js\"><\/script>\n\n\n\n<p><strong>Logical Operators:-<br><\/strong> Logical operators are used to write combine conditional operators.<br> ex:- <\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/483a5caf4757f2cae702a2abda2c2720.js\"><\/script>\n\n\n\n<p><strong>Increment and Decrement Operators:-<br><\/strong>Increment and Decrement operators are used to increment and decrement a variable&#8217;s values to print.<br> ex:- <\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/754fcaf26c033e1e39bab81fb91d2043.js\"><\/script>\n\n\n\n<p><strong>String Operators:-<br><\/strong> String operators are used to combine variable and values this called as Concatenation and Concatenation assignment.<br> ex:- <\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/692fc67acf8b66e10859d555c29b400c.js\"><\/script>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_18141\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_93904\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_18141\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>PHP operators are used to performing operations on variables and values. Maths Operators Assignment operators Logical Operators Increment and Decrement Operators String Operators Maths Operators:- arithmetic operators are used with numerice values to perform arithmetic operators like as addition, subtraction, multiplication, division or etc. ex:- Assignment operators:- Assignment operators are used to write a numeric&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9315,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[5150],"tags":[1243,2454,177,5438],"class_list":["post-9227","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-beginner","tag-important","tag-php","tag-php-operators"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=9227"}],"version-history":[{"count":5,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9227\/revisions"}],"predecessor-version":[{"id":25003,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9227\/revisions\/25003"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/9315"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=9227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=9227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=9227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}