Last active
August 19, 2018 03:11
-
-
Save arif98741/d68a437edbad07bf1eac2bc5035ae780 to your computer and use it in GitHub Desktop.
Return Statement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Me_Class{ | |
public function content() | |
{ | |
global $conn; | |
$this->sql = "select * from question"; | |
$result = $con->query($this->sql); | |
$question = array(); | |
while ($rows = $result->fetch_array()) { | |
$question[] = $rows['ques']; | |
} | |
return $question; | |
} | |
public function question() | |
{ | |
$question = $this->content(); | |
echo explode(',', $question); | |
} | |
} | |
//https://github.com/arif98741 | |
//www.phpdark.com | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment