具有用户变量的URL

时间:2017-10-12 06:11:58

标签: php

如果我想在url中设置变量,

我需要将数据发送到此网址https: //xxx.xxx.xx.xx:xxxx/rest/customers/115/credentials

我想在网址

中设置$user_id而不是115

我该如何解决?

谢谢大家的回复。

2 个答案:

答案 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";