您的位置: 首页 > 技术问答 > 来自字符串的PHP变量值 来自字符串的PHP变量值 分类: 技术问答 • 2022-02-24 11:29:55 问题描述: 如何从字符串变量获取值? How can I get value from variable which is string ? $Member_Student = 3600; $selectedItem = "Member_Student"; $price = "$" . $selectedItem; print_r($price); //prints $Member_Student instead of 3600 我不能使用评估功能. 答 使用