daGrevis Posted May 29, 2010 Report Share Posted May 29, 2010 Sveiki, Ļoti bieži daru tā... $x = "Teksts un {$mainigais}."; Ar konstantēm tā, cik sapratu nevar, ja?? $x = "Teksts un {KONSTANTE}."; Pa ātro pārbraucu ar acīm pāri dokumentācijai - neko neatradu... =( Quote Link to comment Share on other sites More sharing options...
briedis Posted May 29, 2010 Report Share Posted May 29, 2010 $s = "stirngs" . KONSTANTE . $mainigais . $masivs['elements'] . $instace->vertiba . "strings"; Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 29, 2010 Author Report Share Posted May 29, 2010 Nu jā, tā es zinu, ka var darīt... Bet. Tāds jau nebija jautājums... Quote Link to comment Share on other sites More sharing options...
briedis Posted May 29, 2010 Report Share Posted May 29, 2010 (edited) Figūriekavas ir domātas specifiskai sintaksei, kur lai viņa strādātu ir jābūt '$' pirms { vai uzreiz pēc {, tā kā figūriekavas konstantes gadījumā nevarēs izmantot... Edited May 29, 2010 by briedis Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 29, 2010 Author Report Share Posted May 29, 2010 Paldies. =) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.