do you want to change user input content (from formular) before sending Tweet by PHP?
how? … add something before/after the URL(s) ?
$userinput = $_REQUEST['usrtxt']; // ---- text from formular input ----
e.g.: function to add some text bevore and after url(s) in string
// ---------- function: ----------
function str_url_edit ($string) {
preg_match_all(’|(http://[^\s]+)|’, $string, $matches);
if($matches) {
foreach($matches[0] as $match) {
$editurl = “add_something_bevore”.$match.“add_something_after”;
$string = str_replace($match, $editurl, $string);
}
}
return $string;
}
// ---------- usage: ----------
$neu_str = str_url_edit($userinput);
are you using REST API ?
You can get Users Data with GET users/show or GET users/lookup
$readurl = "http://api.twitter.com/1/users/show/".$user_screen_name.".json";
…or what do you mean with user parameters, attributes, varialbles
?