如果我想在url中设置变量,
我需要将数据发送到此网址https: //xxx.xxx.xx.xx:xxxx/rest/customers/115/credentials
我想在网址
中设置$user_id
而不是115
我该如何解决?
谢谢大家的回复。
答案 0 :(得分:0)
只需使用StorageFile file = await openPicker.PickSingleFileAsync();
Windows.Storage.FileProperties.VideoProperties videoProperties = await file.Properties.GetVideoPropertiesAsync();
Duration videoDuration = videoProperties.Duration;
concat运算符即可传递.
php variable
答案 1 :(得分:0)
喜欢这个
$url = "https://xxx.xxx.xx.xx:xxxx/rest/customers/$user_id/credentials";
或
$url = "https://xxx.xxx.xx.xx:xxxx/rest/customers/".$user_id."/credentials";