php insert variable or function in a string

1.$embed="this embed string";

 so->$str2="fjweojfoiejwi{$embed}fewlk";

2.fuction name(){

  return "str";

}

 $str1="fwejfowiej".name()."fjlejwl";

 $str2="fjweo{$name()}fjweiofjweo";

 

posted @ 2012-08-01 09:32  Epirus  阅读(136)  评论(0编辑  收藏  举报