A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nikic/scalar_objects/issues/29 below:

Scalar objects(PHP 7) does not support string interpolation? · Issue #29 · nikic/scalar_objects · GitHub

Skip to content Navigation Menu

Saved searches Use saved searches to filter your results more quickly

Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Additional navigation options

Scalar objects(PHP 7) does not support string interpolation?  #29

Description

It seems that in the PHP 7 version for Scalar Objects, it is now possible to do something like "str"->toUpper(). It is very nice, but I find that string interpolation wont work. So the code below will fail:

$filepath = "{$path}/{$class}.php"->toLower();

Is this the expected behavior, or is it a glitch? Just wondering.

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3