PHP-and-MySQL/C2/Switch-Statement/Khasi
From Script | Spoken-Tutorial
Revision as of 23:04, 1 September 2017 by Meboreen Mary (Talk | contribs)
Time | Narration |
00:00 | Khublei bad ngi pdiangsngewbha (iaphi) sha kane ka jinghikai PHP halor jong ka 'switch' statement. |
00:06 | Ngan pyni ia phi ia ka exercise ba thymmai halor kane namar kadei ka feature ba donkam jong ka PHP. |
00:13 | To ngin shna wut wut ia ka syntax. |
00:16 | Ka switch statement kadei kaba mih bujli ia ka if statement. Ka kham i khuid bad kham lah ban pynkylla ki jingkwah wat la ka input kadei ka expression . |
00:29 | Te mynta, to ngin input ia u value jong uei re uei bad nangta to ngin save ia u value uba iaryngkat bad kane. |
00:36 | Nangta ngi lah ban execute ia u code lada ka iaryngkat lane iadei bad kane ka value. |
00:43 | Kam dei ka rukom ban ianujor. Te na ka bynta ban ianujor ia ka if statement na ka bynta ban pyniadei ia ki values bad ki output kiba shong ha ka input, ngin ia ong switch. |
00:55 | To ngin sdang. |
00:57 | switch kadei ka code na ka bynta jong ka. |
01:00 | To ngin buh ia ka expression hangne, kum ka nuksa, ngan ong "Alex" hangne. |
01:09 | To ngin shna ia ka program barit bad ngan batai ia ka katba dang iaid. |
01:15 | Kumba long ka if statement ngin buh ia ki curly brackets hangne. |
01:21 | Mynta to ngin iapeit ha ka rukom ban call ia man kawei ka sort ban check. |
01:26 | Ngi kwah ban check ia u value hangne. |
01:29 | Mynta ngin buh ia kane ha ki quotation marks. |
01:32 | Phim lah ban number ia ki . |
01:35 | Te kaei kaba ngi type kadei - case – u value jong ka case kaba ngi kwah ban pyniadei. Kum ka nuksa - "Alex". |
01:44 | Nangta ngi type colon lane u semicolon. |
01:48 | Bad nangta ia ka condition lada ka case ka iadei bad ka switch expression kaba phi la jied. |
01:56 | Te, ngan type - echo "you have blue eyes".’ |
02:05 | Ban pynkut ia ka case comparison jong ngi, ngin pyndonkam ia ka break bad u semicolon. |
02:11 | Kynmaw ba ngi la pyndonkam ia u semicolon hangne tangba ym dei hangne. |
02:18 | Mynta ka case kaba ar. To ngin peit kumno ban leh ia ka. |
02:23 | Ngan type "Billy" badecho "you have brown eyes". |
02:30 | Biang. Bad nangta break bad semicolon. |
02:36 | Kane ka dei ka integrated if. Kata kamut, nga lah ban ong - if ka kyrteng jong phi kadei "Alex" nangta echo "you have blue eyes" lane else if ka kyrteng jong phi kadei Billy, "you have brown eyes". |
02:53 | Na ka bynta katto katne ngut ki briew ka suk ban leh ia ka ha kane ka rukom. Ka kham suk ban pule bad ka dei ka bynta jong ka jingkwah. |
03:02 | Biang, ngim don cases shuh, ngan shu pyndonkam "Alex" bad "Billy" na ka bynta kane ka nuksa. |
03:10 | Hangne , ngan ong default kaban echo shabar - "I don't know what color your eyes are". |
03:19 | Biang, ngim donkam ia ka break hadien kane namar ym don cases shuh. |
03:26 | Kaba dei, ym don break shuh hadien jong ka namar ym don opshons shuh ban jied na ka. |
03:34 | Biang. Te, ngi la don ia ka switch jong ngi hangne. To ngin pyniaid ia ka. |
03:39 | Mynta ngan bujli ia kane "Alex" hangne da u variable ban build ia ka program jong ngi. |
03:46 | Te, ngan type $name equals bad ngan ailad ia phi ban rai ia kata. |
03:53 | Nangta ngan ong $name hangne. |
03:57 | Te, phi iohi ba kumne ngi pynrung ia u variable hangne |
04:01 | Phi dei ban tip kumno ban leh ia katei mynta. |
04:04 | Te , to ngin sdang bad peit kumno kane kan treikam. |
04:08 | Phin ong switch, phin shim ia kane ka expression kaba iaryngkat bad "Alex". |
04:13 | Kane kadei ka case kaba iaryngkat bad "Alex" bad kan echo ia kane. Ka break kadei ban pynkut ia ka. |
04:22 | Lada ka kyrteng kadei, shu ong noh , "Rahul", ka default kan echo - "I don't know what colour your eyes are". |
04:29 | Biang, to ngin pyrshang ban run ia kane. |
04:37 | Tang ban shu peit biang sa shisien. |
04:39 | Ngi iohi ba "Alex" ka iadei bad "Alex", bad ka iadei bad ka output. |
04:44 | Kaba phi lah ban leh kadei, phi lah ban pyndap bun tylli ki lines hangne katba phi kwah. Kane ka break ka pynithuh haei ba ka case ka kut. |
04:54 | Ka if statement ka donkam ia ki curly brackets ban pynkut ia ka block. |
04:59 | Wat la katta, hangne break ka pynithuh ia ka jingkut jong ka block. Ia kine la khot ki blocks. |
05:06 | Te, to ngin pynkylla ia kane sha "Billy" bad peit kaei kaba jia. |
05:10 | "You have brown eyes" – thik kumba ngi batai hangne. |
05:16 | Biang, mynta ngan pynkylla ia kane sha "Kyle" bad refresh. "I don't know what colour your eyes are" namar ba kam don ka block kaba batai ia ka rong jong ka Kyle's eye ha ka program feature jong ngi. |
05:31 | Te, katei kadei ka switch statement. |
05:34 | Pyrshang ia ka. Don ki briew kibym sngewtynnad ban pyndonkam ia ka, don pat kiba sngewtynnad ban pyndonkam . |
05:38 | Ka kham stet ban ia ka if statement. Ka kham suk ban pyniaid. Ka kham i biang ruh. Te, shisha ka shong ha ka jingkwah shimet jong phi. |
05:48 | Khublei shibun ia ka jingshaskhor jong phi . Nga i Meboreen na Shillong, nga pynkut ia kane. Khublei Shibun. |