{"comment":{"url":"https://api.github.com/repos/Rruhid/webcoder_task1-2/comments/30995826","html_url":"https://github.com/Rruhid/webcoder_task1-2/commit/21e40108f7d38c6da4e32a2ad90d43a99b8af86c#commitcomment-30995826","id":30995826,"node_id":"MDEzOkNvbW1pdENvbW1lbnQzMDk5NTgyNg==","user":{"login":"Rruhid","id":38219617,"node_id":"MDQ6VXNlcjM4MjE5NjE3","avatar_url":"https://avatars3.githubusercontent.com/u/38219617?v=4","gravatar_id":"","url":"https://api.github.com/users/Rruhid","html_url":"https://github.com/Rruhid","followers_url":"https://api.github.com/users/Rruhid/followers","following_url":"https://api.github.com/users/Rruhid/following{/other_user}","gists_url":"https://api.github.com/users/Rruhid/gists{/gist_id}","starred_url":"https://api.github.com/users/Rruhid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rruhid/subscriptions","organizations_url":"https://api.github.com/users/Rruhid/orgs","repos_url":"https://api.github.com/users/Rruhid/repos","events_url":"https://api.github.com/users/Rruhid/events{/privacy}","received_events_url":"https://api.github.com/users/Rruhid/received_events","type":"User","site_admin":false},"position":7,"line":22,"path":"string.php","commit_id":"21e40108f7d38c6da4e32a2ad90d43a99b8af86c","created_at":"2018-10-22T15:39:08Z","updated_at":"2018-10-22T15:39:08Z","author_association":"OWNER","body":"/Task1-en cox isledilen herfin cemi $str = \"tsssqsss\"; $count=0; $patt = 'q'; for($i=0;$i<strlen($str);$i++){ echo $str[$i].'\r\n'; if($str[$i]==$patt) { $count ++; }\r\n\r\n} print $count;\r\n\r\n//Task2 en cox isledilen herfin cemi funcksdiyada\r\n\r\nfunction get_element($str,$patt){ global $count; for($i=0;$i<strlen($str);$i++){ echo $str[$i].'\r\n'; if($str[$i]==$patt) { $count ++; }\r\n\r\n} print $count; } get_element(\"tsssqsss\",\"s\");\r\n\r\n//Task3 form-kalkulator\r\n\r\n\r\nплюс минус умножить делить </select> <button type=\"submit\" name=\"submit\" value=\"submit\">Calculate</button> if (isset($_POST['submit']) ) { $result1 = $_POST['numb1']; $result2 =$_POST['numb2']; $operator = $_POST['operator']; switch ($operator) { case 'плюс': echo $result1 + $result2; break; case 'минус': echo $result1 - $result2; break; case 'умножить': echo $result1 * $result2; break; case 'делить': if($result2 !=0){ echo $result1/$result2; }else{ echo \"На нульделить нельзя\"; } break; } } ?> //Task4 sait herflerin cemi //Task 5 Ulduzlarin ardicillagnan gelmesi -- \"; } ?> //Task 6//To make it 1-12-123-1234 for($i=1;$i<=5;$i++) { for($j=1;$j<=$i;$j++) { echo $j; } echo \"<br />\"; } //Task7 -- for($i=1;$i<=5;$i++) { for($j=1;$j<=$i;$j++) { echo '*'; } echo \"<br />\"; } //Task8 en cox isledilen herflerin miqdari if(!isset($letters[$bukva])) { $letters[$bukva] = 0; } $letters[$bukva]++;// = $letters[$bukva]+1; } foreach ($letters as $key => $value) { print $key.\" \".$value.\" raz <br>\"; } //9Task en cox isledilen Herfin miqdari ve herflerin sayi '; if($str[$i]==$patt) { $count ++; } } print $count; ?> $value) { if($value >= $Amax ) { $Amax = $value; } if($value <= $Amin ) {\t$Amin = $value; } } echo \"boyuk reqem: $Amax \"; echo \"kicik reqem: $Amin\";"}}
{"actor":{"display_login":"Rruhid"}}