93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/api-examples.md.d9188294.js:
--------------------------------------------------------------------------------
1 | import{u as o,o as r,c as i,k as a,t as s,l as n,Q as c,a as e}from"./chunks/framework.bfb2b7b2.js";const d=c(`
`,6),h=a("h3",{id:"page-data",tabindex:"-1"},[e("Page Data "),a("a",{class:"header-anchor",href:"#page-data","aria-label":'Permalink to "Page Data"'},"")],-1),m=a("h3",{id:"page-frontmatter",tabindex:"-1"},[e("Page Frontmatter "),a("a",{class:"header-anchor",href:"#page-frontmatter","aria-label":'Permalink to "Page Frontmatter"'},"")],-1),g=a("h2",{id:"more",tabindex:"-1"},[e("More "),a("a",{class:"header-anchor",href:"#more","aria-label":'Permalink to "More"'},"")],-1),u=a("p",null,[e("Check out the documentation for the "),a("a",{href:"https://vitepress.dev/reference/runtime-api#usedata",target:"_blank",rel:"noreferrer"},"full list of runtime APIs"),e(".")],-1),x=JSON.parse('{"title":"Runtime API Examples","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-examples.md","filePath":"api-examples.md"}'),f={name:"api-examples.md"},D=Object.assign(f,{setup(_){const{site:E,theme:t,page:l,frontmatter:p}=o();return(b,y)=>(r(),i("div",null,[d,a("pre",null,s(n(t)),1),h,a("pre",null,s(n(l)),1),m,a("pre",null,s(n(p)),1),g,u]))}});export{x as __pageData,D as default};
32 |
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/api-examples.md.d9188294.lean.js:
--------------------------------------------------------------------------------
1 | import{u as o,o as r,c as i,k as a,t as s,l as n,Q as c,a as e}from"./chunks/framework.bfb2b7b2.js";const d=c("",6),h=a("h3",{id:"page-data",tabindex:"-1"},[e("Page Data "),a("a",{class:"header-anchor",href:"#page-data","aria-label":'Permalink to "Page Data"'},"")],-1),m=a("h3",{id:"page-frontmatter",tabindex:"-1"},[e("Page Frontmatter "),a("a",{class:"header-anchor",href:"#page-frontmatter","aria-label":'Permalink to "Page Frontmatter"'},"")],-1),g=a("h2",{id:"more",tabindex:"-1"},[e("More "),a("a",{class:"header-anchor",href:"#more","aria-label":'Permalink to "More"'},"")],-1),u=a("p",null,[e("Check out the documentation for the "),a("a",{href:"https://vitepress.dev/reference/runtime-api#usedata",target:"_blank",rel:"noreferrer"},"full list of runtime APIs"),e(".")],-1),x=JSON.parse('{"title":"Runtime API Examples","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-examples.md","filePath":"api-examples.md"}'),f={name:"api-examples.md"},D=Object.assign(f,{setup(_){const{site:E,theme:t,page:l,frontmatter:p}=o();return(b,y)=>(r(),i("div",null,[d,a("pre",null,s(n(t)),1),h,a("pre",null,s(n(l)),1),m,a("pre",null,s(n(p)),1),g,u]))}});export{x as __pageData,D as default};
2 |
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/app.c51039d5.js:
--------------------------------------------------------------------------------
1 | import{a0 as i,s,a1 as c,a2 as l,a3 as d,a4 as f,a5 as m,a6 as h,a7 as A,a8 as y,a9 as g,aa as P,ab as v,d as w,u as C,j as R,y as _,ac as b,ad as D,ae as E}from"./chunks/framework.bfb2b7b2.js";import{t as p}from"./chunks/theme.f054955a.js";const L={extends:p,Layout:()=>i(p.Layout,null,{}),enhanceApp({app:e,router:a,siteData:t}){}};function u(e){if(e.extends){const a=u(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const o=u(L),T=w({name:"VitePressApp",setup(){const{site:e}=C();return R(()=>{_(()=>{document.documentElement.lang=e.value.lang,document.documentElement.dir=e.value.dir})}),b(),D(),E(),o.setup&&o.setup(),()=>i(o.Layout)}});async function j(){const e=O(),a=x();a.provide(l,e);const t=d(e.route);return a.provide(f,t),a.component("Content",m),a.component("ClientOnly",h),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),o.enhanceApp&&await o.enhanceApp({app:a,router:e,siteData:A}),{app:a,router:e,data:t}}function x(){return y(T)}function O(){let e=s,a;return g(t=>{let n=P(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=v(()=>import(n),[])),s&&(e=!1),r},o.NotFound)}s&&j().then(({app:e,router:a,data:t})=>{a.go().then(()=>{c(a.route,t.site),e.mount("#app")})});export{j as createApp};
2 |
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/index.md.2db9725f.js:
--------------------------------------------------------------------------------
1 | import{_ as e,o as t,c as a}from"./chunks/framework.bfb2b7b2.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"পিএইচপি বেসিক কোর্স","text":"একটি বিগেনার ফ্রেন্ডলি পিএইচপি কোর্স","tagline":"সৌজন্যেঃ Larn with Polash Mahmud","actions":[{"theme":"brand","text":"চলুন শুরু করি","link":"/markdown-examples"}]},"features":[{"title":"আমাদের সম্পর্কে","details":"আমাদের সম্পর্কে জানতে আপনি আমাদের ফেসবুক পেজ ভিজিট করুন। আমরা যারা একদম নতুন তাদের সহজ ভাষায় পিএইচপি শিখানোর চেষ্টা করি। এছাড়াও আমাদের ইউটিউব চ্যানেলে পিএইচপি নিয়ে ভিডিও টিউটোরিয়াল পাবেন।"},{"title":"কোর্স সমূহ","details":"আমাদের কোর্স সমূহ দেখতে আপনি আমাদের ফেসবুক পেজ ভিজিট করুন অথবা আমাদের ইউটিউব চ্যানেলে ভিজিট করুন।"},{"title":"এই সাইট কেন তৈরি করা হয়েছে?","details":"আমরা যখন PHP কোর্সটা শুরু করি তখন আমরা মনে করলাম আমরা যা শিখাচ্ছি কেন না সেগুলো কোথাও নোট করা রাখা যাক। সেই চিন্তা থেকেই আমাদের এই ডকুমেন্টেশনটি তৈরি করা। আমরা যেই কোড গুলো লেখব সেগুলো এই ডকুমেন্টেশনে নোট করে রাখা হবে। যাতে আমরা পরবর্তীতে যখন কোড গুলো দেখব তখন আমরা এই ডকুমেন্টেশন থেকে দেখে নিতে পারি।"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),n={name:"index.md"};function i(o,r,s,d,l,c){return t(),a("div")}const _=e(n,[["render",i]]);export{p as __pageData,_ as default};
2 |
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/index.md.2db9725f.lean.js:
--------------------------------------------------------------------------------
1 | import{_ as e,o as t,c as a}from"./chunks/framework.bfb2b7b2.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"পিএইচপি বেসিক কোর্স","text":"একটি বিগেনার ফ্রেন্ডলি পিএইচপি কোর্স","tagline":"সৌজন্যেঃ Larn with Polash Mahmud","actions":[{"theme":"brand","text":"চলুন শুরু করি","link":"/markdown-examples"}]},"features":[{"title":"আমাদের সম্পর্কে","details":"আমাদের সম্পর্কে জানতে আপনি আমাদের ফেসবুক পেজ ভিজিট করুন। আমরা যারা একদম নতুন তাদের সহজ ভাষায় পিএইচপি শিখানোর চেষ্টা করি। এছাড়াও আমাদের ইউটিউব চ্যানেলে পিএইচপি নিয়ে ভিডিও টিউটোরিয়াল পাবেন।"},{"title":"কোর্স সমূহ","details":"আমাদের কোর্স সমূহ দেখতে আপনি আমাদের ফেসবুক পেজ ভিজিট করুন অথবা আমাদের ইউটিউব চ্যানেলে ভিজিট করুন।"},{"title":"এই সাইট কেন তৈরি করা হয়েছে?","details":"আমরা যখন PHP কোর্সটা শুরু করি তখন আমরা মনে করলাম আমরা যা শিখাচ্ছি কেন না সেগুলো কোথাও নোট করা রাখা যাক। সেই চিন্তা থেকেই আমাদের এই ডকুমেন্টেশনটি তৈরি করা। আমরা যেই কোড গুলো লেখব সেগুলো এই ডকুমেন্টেশনে নোট করে রাখা হবে। যাতে আমরা পরবর্তীতে যখন কোড গুলো দেখব তখন আমরা এই ডকুমেন্টেশন থেকে দেখে নিতে পারি।"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),n={name:"index.md"};function i(o,r,s,d,l,c){return t(),a("div")}const _=e(n,[["render",i]]);export{p as __pageData,_ as default};
2 |
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-italic-cyrillic-ext.33bd5a8e.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-italic-cyrillic-ext.33bd5a8e.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-italic-cyrillic.ea42a392.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-italic-cyrillic.ea42a392.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-italic-greek-ext.4fbe9427.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-italic-greek-ext.4fbe9427.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-italic-greek.8f4463c4.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-italic-greek.8f4463c4.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-italic-latin-ext.bd8920cc.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-italic-latin-ext.bd8920cc.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-italic-latin.bd3b6f56.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-italic-latin.bd3b6f56.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-italic-vietnamese.6ce511fb.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-italic-vietnamese.6ce511fb.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-roman-cyrillic-ext.e75737ce.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-roman-cyrillic-ext.e75737ce.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-roman-cyrillic.5f2c6c8c.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-roman-cyrillic.5f2c6c8c.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-roman-greek-ext.ab0619bc.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-roman-greek-ext.ab0619bc.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-roman-greek.d5a6d92a.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-roman-greek.d5a6d92a.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-roman-latin-ext.0030eebd.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-roman-latin-ext.0030eebd.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-roman-latin.2ed14f66.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-roman-latin.2ed14f66.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/inter-roman-vietnamese.14ce25a6.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polashmahmud/php/bae14d03674900e7b3b2646a43d9d8674814de9f/docs/.vitepress/dist/assets/inter-roman-vietnamese.14ce25a6.woff2
--------------------------------------------------------------------------------
/docs/.vitepress/dist/assets/markdown-examples.md.3f5df2fb.js:
--------------------------------------------------------------------------------
1 | import{_ as s,o as a,c as n,Q as l}from"./chunks/framework.bfb2b7b2.js";const g=JSON.parse('{"title":"Markdown Extension Examples","description":"","frontmatter":{},"headers":[],"relativePath":"markdown-examples.md","filePath":"markdown-examples.md"}'),e={name:"markdown-examples.md"},p=l(`
::: info
30 | This is an info box.
31 | :::
32 |
33 | ::: tip
34 | This is a tip.
35 | :::
36 |
37 | ::: warning
38 | This is a warning.
39 | :::
40 |
41 | ::: danger
42 | This is a dangerous warning.
43 | :::
44 |
45 | ::: details
46 | This is a details block.
47 | :::
::: info
48 | This is an info box.
49 | :::
50 |
51 | ::: tip
52 | This is a tip.
53 | :::
54 |
55 | ::: warning
56 | This is a warning.
57 | :::
58 |
59 | ::: danger
60 | This is a dangerous warning.
61 | :::
62 |
63 | ::: details
64 | This is a details block.
65 | :::
আমাদের সম্পর্কে জানতে আপনি আমাদের ফেসবুক পেজ ভিজিট করুন। আমরা যারা একদম নতুন তাদের সহজ ভাষায় পিএইচপি শিখানোর চেষ্টা করি। এছাড়াও আমাদের ইউটিউব চ্যানেলে পিএইচপি নিয়ে ভিডিও টিউটোরিয়াল পাবেন।
কোর্স সমূহ
আমাদের কোর্স সমূহ দেখতে আপনি আমাদের ফেসবুক পেজ ভিজিট করুন অথবা আমাদের ইউটিউব চ্যানেলে ভিজিট করুন।
এই সাইট কেন তৈরি করা হয়েছে?
আমরা যখন PHP কোর্সটা শুরু করি তখন আমরা মনে করলাম আমরা যা শিখাচ্ছি কেন না সেগুলো কোথাও নোট করা রাখা যাক। সেই চিন্তা থেকেই আমাদের এই ডকুমেন্টেশনটি তৈরি করা। আমরা যেই কোড গুলো লেখব সেগুলো এই ডকুমেন্টেশনে নোট করে রাখা হবে। যাতে আমরা পরবর্তীতে যখন কোড গুলো দেখব তখন আমরা এই ডকুমেন্টেশন থেকে দেখে নিতে পারি।
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/docs/.vitepress/theme/index.js:
--------------------------------------------------------------------------------
1 | // https://vitepress.dev/guide/custom-theme
2 | import { h } from 'vue'
3 | import DefaultTheme from 'vitepress/theme'
4 | import './style.css'
5 |
6 | /** @type {import('vitepress').Theme} */
7 | export default {
8 | extends: DefaultTheme,
9 | Layout: () => {
10 | return h(DefaultTheme.Layout, null, {
11 | // https://vitepress.dev/guide/extending-default-theme#layout-slots
12 | })
13 | },
14 | enhanceApp({ app, router, siteData }) {
15 | // ...
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/docs/.vitepress/theme/style.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Customize default theme styling by overriding CSS variables:
3 | * https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
4 | */
5 |
6 | /**
7 | * Colors
8 | *
9 | * Each colors have exact same color scale system with 3 levels of solid
10 | * colors with different brightness, and 1 soft color.
11 | *
12 | * - `XXX-1`: The most solid color used mainly for colored text. It must
13 | * satisfy the contrast ratio against when used on top of `XXX-soft`.
14 | *
15 | * - `XXX-2`: The color used mainly for hover state of the button.
16 | *
17 | * - `XXX-3`: The color for solid background, such as bg color of the button.
18 | * It must satisfy the contrast ratio with pure white (#ffffff) text on
19 | * top of it.
20 | *
21 | * - `XXX-soft`: The color used for subtle background such as custom container
22 | * or badges. It must satisfy the contrast ratio when putting `XXX-1` colors
23 | * on top of it.
24 | *
25 | * The soft color must be semi transparent alpha channel. This is crucial
26 | * because it allows adding multiple "soft" colors on top of each other
27 | * to create a accent, such as when having inline code block inside
28 | * custom containers.
29 | *
30 | * - `default`: The color used purely for subtle indication without any
31 | * special meanings attched to it such as bg color for menu hover state.
32 | *
33 | * - `brand`: Used for primary brand colors, such as link text, button with
34 | * brand theme, etc.
35 | *
36 | * - `tip`: Used to indicate useful information. The default theme uses the
37 | * brand color for this by default.
38 | *
39 | * - `warning`: Used to indicate warning to the users. Used in custom
40 | * container, badges, etc.
41 | *
42 | * - `danger`: Used to show error, or dangerous message to the users. Used
43 | * in custom container, badges, etc.
44 | * -------------------------------------------------------------------------- */
45 |
46 | @import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');
47 |
48 |
49 | body {
50 | font-family: 'Hind Siliguri', sans-serif;
51 | }
52 |
53 | :root {
54 | --vp-c-default-1: var(--vp-c-gray-1);
55 | --vp-c-default-2: var(--vp-c-gray-2);
56 | --vp-c-default-3: var(--vp-c-gray-3);
57 | --vp-c-default-soft: var(--vp-c-gray-soft);
58 |
59 | --vp-c-brand-1: var(--vp-c-indigo-1);
60 | --vp-c-brand-2: var(--vp-c-indigo-2);
61 | --vp-c-brand-3: var(--vp-c-indigo-3);
62 | --vp-c-brand-soft: var(--vp-c-indigo-soft);
63 |
64 | --vp-c-tip-1: var(--vp-c-brand-1);
65 | --vp-c-tip-2: var(--vp-c-brand-2);
66 | --vp-c-tip-3: var(--vp-c-brand-3);
67 | --vp-c-tip-soft: var(--vp-c-brand-soft);
68 |
69 | --vp-c-warning-1: var(--vp-c-yellow-1);
70 | --vp-c-warning-2: var(--vp-c-yellow-2);
71 | --vp-c-warning-3: var(--vp-c-yellow-3);
72 | --vp-c-warning-soft: var(--vp-c-yellow-soft);
73 |
74 | --vp-c-danger-1: var(--vp-c-red-1);
75 | --vp-c-danger-2: var(--vp-c-red-2);
76 | --vp-c-danger-3: var(--vp-c-red-3);
77 | --vp-c-danger-soft: var(--vp-c-red-soft);
78 | }
79 |
80 | /**
81 | * Component: Button
82 | * -------------------------------------------------------------------------- */
83 |
84 | :root {
85 | --vp-button-brand-border: transparent;
86 | --vp-button-brand-text: var(--vp-c-white);
87 | --vp-button-brand-bg: var(--vp-c-brand-3);
88 | --vp-button-brand-hover-border: transparent;
89 | --vp-button-brand-hover-text: var(--vp-c-white);
90 | --vp-button-brand-hover-bg: var(--vp-c-brand-2);
91 | --vp-button-brand-active-border: transparent;
92 | --vp-button-brand-active-text: var(--vp-c-white);
93 | --vp-button-brand-active-bg: var(--vp-c-brand-1);
94 | }
95 |
96 | /**
97 | * Component: Home
98 | * -------------------------------------------------------------------------- */
99 |
100 | :root {
101 | --vp-home-hero-name-color: transparent;
102 | --vp-home-hero-name-background: -webkit-linear-gradient(
103 | 120deg,
104 | #bd34fe 30%,
105 | #41d1ff
106 | );
107 |
108 | --vp-home-hero-image-background-image: linear-gradient(
109 | -45deg,
110 | #bd34fe 50%,
111 | #47caff 50%
112 | );
113 | --vp-home-hero-image-filter: blur(44px);
114 | }
115 |
116 | @media (min-width: 640px) {
117 | :root {
118 | --vp-home-hero-image-filter: blur(56px);
119 | }
120 | }
121 |
122 | @media (min-width: 960px) {
123 | :root {
124 | --vp-home-hero-image-filter: blur(68px);
125 | }
126 | }
127 |
128 | /**
129 | * Component: Custom Block
130 | * -------------------------------------------------------------------------- */
131 |
132 | :root {
133 | --vp-custom-block-tip-border: transparent;
134 | --vp-custom-block-tip-text: var(--vp-c-text-1);
135 | --vp-custom-block-tip-bg: var(--vp-c-brand-soft);
136 | --vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);
137 | }
138 |
139 | /**
140 | * Component: Algolia
141 | * -------------------------------------------------------------------------- */
142 |
143 | .DocSearch {
144 | --docsearch-primary-color: var(--vp-c-brand-1) !important;
145 | }
146 |
147 |
--------------------------------------------------------------------------------
/docs/class-03.md:
--------------------------------------------------------------------------------
1 | # পিএইচপি বেসিক কোর্স
2 |
3 | ## printf() ফাংশন
4 |
5 | পিএইচপিতে আমরা যদি কোন ভ্যালু প্রিন্ট করতে চাই তাহলে আমরা একটা ফাংশন ব্যবহার করি। এই ফাংশনের নাম printf()। এই ফাংশনের
6 | কাজ হচ্ছে আমরা যে ভ্যালু প্রিন্ট করতে চাই তাকে প্রিন্ট করে দেবে। এই ফাংশনের কাজ করার জন্য আমাদের কিছু কিছু কমান্ড
7 | ব্যবহার করতে হবে। এই কমান্ডগুলো হচ্ছে-
8 |
9 | - %s - String
10 | - %d - Integer
11 | - %f - Float (decimal numbers)
12 | - %b - Binary
13 | - %o - Octal
14 |
15 | আরো বিস্তারিত জানতে [php.net](https://www.php.net/manual/en/function.printf) এ গিয়ে সার্চ করে দেখতে পারেন।
16 |
17 | **Example #1 printf(): various examples**
18 |
19 | ```php
20 | $b) {
151 | echo "a is greater than b";
152 | }
153 | ```
154 |
155 | আউটপুট:
156 |
157 | ```
158 | a is greater than b
159 | ```
160 |
161 | **PHP - The if...else Statement**
162 |
163 | পিএইচপিতে আমরা যদি কোন কিছু চেক করতে চাই তাহলে আমরা if...else স্টেটমেন্ট ব্যবহার করি। এই স্টেটমেন্ট এর কাজ হচ্ছে যদি
164 | কোন কিছু সত্য হয় তাহলে এর ভিতরের কোডগুলো রান করবে। আর যদি সত্য না হয় তাহলে else এর ভিতরের কোডগুলো রান করবে।
165 |
166 | সিনট্যাক্সঃ
167 |
168 | ```php
169 | if (condition) {
170 | code to be executed if condition is true;
171 | } else {
172 | code to be executed if condition is false;
173 | }
174 | ```
175 |
176 | উদাহরণঃ
177 |
178 | ```php
179 | $b) {
184 | echo "a is greater than b";
185 | } else {
186 | echo "a is NOT greater than b";
187 | }
188 | ```
189 |
190 | আউটপুট:
191 |
192 | ```
193 | a is NOT greater than b
194 | ```
195 |
196 | **PHP - The if...elseif...else Statement**
197 |
198 | পিএইচপিতে আমরা যদি কোন কিছু চেক করতে চাই তাহলে আমরা if...elseif...else স্টেটমেন্ট ব্যবহার করি। এই স্টেটমেন্ট এর কাজ
199 | হচ্ছে যদি কোন কিছু সত্য হয় তাহলে এর ভিতরের কোডগুলো রান করবে। আর যদি সত্য না হয় তাহলে elseif এর ভিতরের কোডগুলো রান
200 | করবে। আর যদি সত্য না হয় তাহলে else এর ভিতরের কোডগুলো রান করবে।
201 |
202 | সিনট্যাক্সঃ
203 |
204 | ```php
205 | if (condition) {
206 | code to be executed if condition is true;
207 | } elseif (condition) {
208 | code to be executed if condition is false and elseif condition is true;
209 | } else {
210 | code to be executed if and elseif both condition is false;
211 | }
212 | ```
213 |
214 | উদাহরণঃ
215 |
216 | ```php
217 | $b) {
222 | echo "a is greater than b";
223 | } elseif ($a == $b) {
224 | echo "a is equal to b";
225 | } else {
226 | echo "a is NOT greater than b and a is NOT equal to b";
227 | }
228 | ```
229 |
230 | Alternative syntax for control structures এর ব্যবহার করে আমরা এই কোডটি লিখতে পারি এভাবেঃ
231 |
232 | ```php
233 | $b):
238 | echo "a is greater than b";
239 | elseif ($a == $b):
240 | echo "a is equal to b";
241 | else:
242 | echo "a is NOT greater than b and a is NOT equal to b";
243 | endif;
244 | ```
245 |
246 | আউটপুট:
247 |
248 | ```
249 | a is NOT greater than b and a is NOT equal to b
250 | ```
251 |
252 | আরো কিছু উদাহরণঃ
253 |
254 | ```php
255 |
256 |
257 | A is equal to 5
258 |
259 | ```
260 |
261 | আউটপুট:
262 |
263 | ```
264 | A is equal to 5
265 | ```
266 |
267 | ```php
268 | $b) ? "a is greater than b" : "a is NOT greater than b";
306 | ```
307 |
308 | আউটপুট:
309 |
310 | ```
311 | a is NOT greater than b
312 | ```
313 |
314 | ## PHP switch Statement
315 |
316 | সুইচ স্টেটমেন্ট বিভিন্ন অবস্থার উপর ভিত্তি করে বিভিন্ন কাজকর্ম করতে ব্যবহৃত হয়।
317 |
318 | সিনট্যাক্সঃ
319 |
320 | ```php
321 | switch (n) {
322 | case label1:
323 | code to be executed if n=label1;
324 | break;
325 | case label2:
326 | code to be executed if n=label2;
327 | break;
328 | case label3:
329 | code to be executed if n=label3;
330 | break;
331 | ...
332 | default:
333 | code to be executed if n is different from all labels;
334 | }
335 | ```
336 |
337 | উদাহরণঃ
338 |
339 | ```php
340 | 0);
472 | ```
473 |
474 | আউটপুট:
475 |
476 | ```
477 | 0
478 | ```
479 |
480 | উদাহরণঃ
481 |
482 | ```php
483 | 0);
499 | ```
500 |
501 | আউটপুট:
502 |
503 | ```
504 | i is not big enough
505 | ```
506 |
507 | ## PHP - The for Loop
508 |
509 | পিএইচপিতে আমরা যদি কোন কিছু বারবার করতে চাই তাহলে আমরা for লুপ ব্যবহার করি। এই লুপ এর কাজ হচ্ছে যতক্ষণ কন্ডিশনটি সত্য
510 | ততক্ষণ লুপ চলবে।
511 |
512 | সিনট্যাক্সঃ
513 |
514 | ```php
515 | for (init counter; test counter; increment counter) {
516 | code to be executed for each iteration;
517 | }
518 | ```
519 |
520 | উদাহরণঃ
521 |
522 | ```php
523 | $value) {
584 | echo "Key: $key; Value: $value\n";
585 | }
586 | ```
587 |
588 | আউটপুট:
589 |
590 | ```
591 | Key: 0; Value: one
592 | Key: 1; Value: two
593 | Key: 2; Value: three
594 | ```
595 |
596 | ## break and continue
597 |
598 | পিএইচপিতে আমরা যদি কোন লুপ থেকে বের হতে চাই তাহলে আমরা break ব্যবহার করি। আর যদি কোন লুপ এর কিছু কোড স্কিপ করতে চাই
599 | তাহলে আমরা continue ব্যবহার করি।
600 |
601 | উদাহরণঃ
602 |
603 | ```php
604 |
20 |
21 |
22 |
23 |
24 | Tailwind CSS Form
25 |
26 |
27 |
50 |
51 |
52 | ```
53 |
54 | এবার আমরা পরবর্তী ধাপ তথা ফর্ম তৈরি করব।
55 |
56 | ## প্রাথমিক এইচটিএমএল ফর্ম{#build-first-html-form}
57 |
58 | আমাদের index.php ফাইলের body সেকশনে একটি এইচটিএমএল ফর্ম তৈরি করা হলো যার ভিতরে Text input, Radio Buttons এবং Multi-checkbox ফিল্ডগুলো থাকবে প্রাথমিক ভাবে বিভিন্ন রকম value প্রদান করার জন্য।
59 |
60 | ```html
61 |
62 |
63 |
64 |
65 |
66 |
67 | Tailwind CSS Form
68 |
69 |
70 |
71 |
Example From
72 |
73 |
74 |
115 |
116 |
117 |
118 | ```
119 |
120 | এরপর এইচটিএমএল এর ভিতর আমরা date picker ফিল্ড নিবো ।
121 |
122 | ```html
123 |
124 |
125 |
126 |
127 |
128 | ```
129 |
130 | এখানে date picker ব্যবহারের জন্য আমাদের jquery নির্ভরতা দরকার হবে। এজন্য পূর্বের ন্যায় এইচটিএমএলের ইনিশিয়াল টেমপ্লেট-এর head সেকশনে [jquery cdn](https://releases.jquery.com/) টা লিংক করে দিবো।
131 |
132 | ```html
133 |
134 |
135 | ```
136 |
137 | এরপর head section এ jquery cdn এর নিচে [flatpicker cdn](https://flatpickr.js.org/getting-started/) লিংক করে দিবো।
138 |
139 | ```html
140 |
141 |
142 | ```
143 |
144 | এখন, সবশেষে body section-এর close tag-এর উপরে datepicker যথাযথ কাজ করার জন্য flatpickr ইনিশিয়ালাইজ করে নিতে javascript Call করতে হবে।
145 |
146 | ```html
147 | //all codes are above as regular
148 |
155 |
156 |