In .net, we have the following to write a variable (well, this is the ToString () method) on an asp.net page:
<%= myString %>
Is there anything similar in php? (I'm tired of typing "ehco" instead of "echo");
If you included short_open_tagsin php.ini you can use:
short_open_tags
<?= $myString ?>
The discussion is uncomfortable about the good idea of a good idea .
You can also use ASP-style tags by including them asp_tagsin php.ini, but they are not recommended (they are considered outdated and I believe that they were removed in PHP6 ):
asp_tags
<%= $myString %>
<?= $var ?> .
<?= $var ?>
<?= $myString ?> (, PHP )
Source: https://habr.com/ru/post/1775906/More articles:Installing a new API in Java for OS X - javaHow to get the authentication cookie name for the current session in classic ASP - sessionwhat is the equivalent code for android: layout_above = "@android: id / tabs"? - androidWhy does this PHP regular expression not match accented characters? - phpSPContext.Current.FormContext.OnSaveHandler does not start when SPControlMode is new - sharepoint-2010Adding Controller Macros to Rspec - ruby-on-railsWhat exactly does TFS build quality change do exactly? - tfsA way to get the return type of a method in Objective-C? - iosUsing QtPropertyBrowser as an Advanced Configuration Editor - user-interfaceForeign key as TPH discriminator in EF4 using CTP4 code First - inheritanceAll Articles