我试图进入我的根目录,我的D文件夹中有xampp,并且我已经将htdocs中创建了文件夹名称(app),并创建了文件Book.php,现在我正尝试使用url {{3} },但没有输出。谁能纠正我?
class Book // class is where we define properties and methods
{
public $isbn;
public $title;
public $author;
public $available;
//instantiate
$harry_potter = new Book();
$harry_potter->isbn = 322401494;
$harry_potter->title = "Harry Potter and Magicians";
$harry_potter->author = "Shahzad";
$harry_potter->available = 10;
var_dump($harry_potter);
答案 0 :(得分:0)
实际上,我可以看到发生这种情况的两个主要原因,
希望它会有所帮助。