Variables in php ...
Variable কি (What is Variable) ?
ভেরিয়েবল এমন একটি নাম যেখানে আমরা যে কোনও ধরণের ডেটা সঞ্চয় করতে পারি। (Variable
is a name where we can store any type of data.)
একটি পাত্র এবং একটি পরিবর্তনশীল একই হয়। একটি পাত্রের ভিতরে আমরা বিস্কিট, চিপসের মতো যে কোনও কিছু সঞ্চয় করতে পারি।
এবং একটি ভেরিয়েবলের ভিতরে আমরা string ডেটা, integer ডেটার মতো যে কোনও কিছু সঞ্চয় করতে পারি। (A pot and a Variables are like same. Inside a pot we can store anythings like biskit, chips.
And inside a Variables we can store anythings like string data, integer data.)
PHP তে ভেরিয়েবল তৈরির নিয়ম (Rules for creating Variables in php)?
- একটি ভেরিয়েবল $ চিহ্ন দিয়ে শুরু হয়, তার পরে ভেরিয়েবলের নাম (A variable starts with the $ sign, followed by the name of the variable)
- একটি variable নাম অবশ্যই একটি বর্ণ বা আন্ডারস্কোর অক্ষর দিয়ে শুরু করা উচিত (A variable name must start with a letter or the underscore character)
- একটি variable নাম একটি সংখ্যা দিয়ে শুরু করতে পারে না (A variable name cannot start with a number)
- একটি ভেরিয়েবল নামের মধ্যে কেবল আলফা-সংখ্যাসূচক অক্ষর এবং আন্ডারস্কোর (A-z, 0-9, এবং _ ) থাকতে পারে [ A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ ) ]
- চলক নামগুলি কেস-সংবেদনশীল ($name এবং $NAME দুটি পৃথক ভেরিয়েবল) [ Variable names are case-sensitive ($name and $NAME are two different variables) ]
এই চিত্রটিতে আমরা দেখাই যে একটি variable কীভাবে তৈরি করতে পারে এবং কীভাবে কোনও variable ভিতরে ডেটা সংরক্ষণ করা যায়। (In this image show that how a variable create and how to store data inside a variable.)
0 Comments