Làm thế nào tôi có thể lấy user_nicename
từ đối tượng này?
BP_User Object
[
[data] => stdClass Object
[
[ID] => 1
[user_login] => NICENICE
[user_pass] => $P$BwLHvV7zxcZZ/zW7MY0NXNSmANP.U5.
[user_nicename] => NICENAME
...
Và tôi có thể tìm tài nguyên để tìm hiểu điều này ở đâu?
ajreal
46.2K10 Huy hiệu vàng86 Huy hiệu bạc119 Huy hiệu đồng10 gold badges86 silver badges119 bronze badges
Hỏi ngày 8 tháng 12 năm 2010 lúc 21:46Dec 8, 2010 at 21:46
2
$variable->data->user_nicename
nên làm việc.
Đã trả lời ngày 8 tháng 12 năm 2010 lúc 21:47Dec 8, 2010 at 21:47
PekkapekkaPekka
436K139 Huy hiệu vàng966 Huy hiệu bạc1082 Huy hiệu Đồng139 gold badges966 silver badges1082 bronze badges
2
Bạn cũng có thể in bằng cách khác
foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
Kết quả sẽ được
name:NICENICE , Pass:$P$BwLHvV7zxcZZ/zW7MY0NXNSmANP.U5., nicename:NICENAME
Đã trả lời ngày 23 tháng 1 năm 2015 lúc 11:07Jan 23, 2015 at 11:07
Shiv Singhshiv SinghShiv Singh
6.6703 Huy hiệu vàng39 Huy hiệu bạc49 Huy hiệu đồng3 gold badges39 silver badges49 bronze badges
12 năm trước
Chris tại r3i chấm nó ¶ — Fetch a result row as an object
15 năm trước
Rodolphe Dot Bodeau tại miễn phí dot fr ¶[resource $result
, string $class_name
= ?, array $params
= ?]: object
thông tin [at] woeiweb [dot] nl ¶
Trithaithus tại tibiahumor dot net ¶17 năm trướcresource that is being evaluated. This result comes from a call to mysql_query[].
Justin Rovangbackglancer tại hotmail ¶stdClass object is returned.
hcse tại op dot pl ¶Danielpunt ¶array of parameters to pass to the constructor for class_name
objects.
cú pháp ¶
16 năm trướcobject with string properties that correspond to the fetched row, or
2 if there are no more
rows. $variable->data->user_nicename
rcoles tại hotmail dot com
19 năm trướcmysql_fetch_object[] example
$variable->data->user_nicename
3Qmysql_fetch_object[] example
$variable->data->user_nicename
418 năm trước
Federico tại Pomi Dot Net: Performance
20 năm trướcmysql_fetch_array[], and almost as quick as mysql_fetch_row[] [the difference is insignificant].
strrev xc.noxeh@ellij ¶:
Eskil Kvalnes ¶ is similar to mysql_fetch_array[], with one difference - an object is returned, instead of an array. Indirectly, that means that you can only access the data by the field names, and not by their offsets [numbers are illegal property names].
Spamme at aol dot com ¶: Field names returned by this function are case-sensitive.
Lưu ý: Hàm này đặt các trường NULL thành giá trị PHP
5.: This function sets NULL fields to the PHP$variable->data->user_nicename
5 value.$variable->data->user_nicename
Xem thêm
- mysql_fetch_array [] - lấy hàng kết quả như một mảng kết hợp, một mảng số hoặc cả hai
- mysql_fetch_assoc [] - lấy hàng kết quả như một mảng kết hợp
- mysql_fetch_row [] - Nhận một hàng kết quả như một mảng được liệt kê
- mysql_data_seek [] - di chuyển con trỏ kết quả nội bộ
- mysql_query [] - Gửi truy vấn MySQL
MP ¶ ¶
14 năm trước
$variable->data->user_nicename
6$variable->data->user_nicename
7$variable->data->user_nicename
8$variable->data->user_nicename
9foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
0foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
1foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
2Peter t ¶ ¶
14 năm trước
foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
3Peter t ¶ ¶
quản trị trang web tại Kibab dot com ¶
foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
412 năm trước ¶
Chris tại r3i chấm nó ¶
foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
5foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
6foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
7foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
8foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
9name:NICENICE , Pass:$P$BwLHvV7zxcZZ/zW7MY0NXNSmANP.U5., nicename:NICENAME
0name:NICENICE , Pass:$P$BwLHvV7zxcZZ/zW7MY0NXNSmANP.U5., nicename:NICENAME
1foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
215 năm trước ¶
Chris tại r3i chấm nó ¶
name:NICENICE , Pass:$P$BwLHvV7zxcZZ/zW7MY0NXNSmANP.U5., nicename:NICENAME
3name:NICENICE , Pass:$P$BwLHvV7zxcZZ/zW7MY0NXNSmANP.U5., nicename:NICENAME
4foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
215 năm trước ¶
Chris tại r3i chấm nó ¶
name:NICENICE , Pass:$P$BwLHvV7zxcZZ/zW7MY0NXNSmANP.U5., nicename:NICENAME
6name:NICENICE , Pass:$P$BwLHvV7zxcZZ/zW7MY0NXNSmANP.U5., nicename:NICENAME
7foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
2Trithaithus tại tibiahumor dot net ¶ ¶
17 năm trước
name:NICENICE , Pass:$P$BwLHvV7zxcZZ/zW7MY0NXNSmANP.U5., nicename:NICENAME
9user_nicename
0
user_nicename
1
user_nicename
2Justin Rovang ¶
14 năm trước
user_nicename
3
user_nicename
4
user_nicename
5
user_nicename
6
user_nicename
7
foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
2backglancer tại hotmail ¶ ¶
17 năm trước
user_nicename
9
$result
0
$result
1
$result
2
foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
2Justin Rovang ¶
14 năm trước
$result
4
$result
5
$result
6backglancer tại hotmail ¶ ¶
14 năm trước
$result
7
$result
8
$result
9
$class_name
0backglancer tại hotmail ¶ ¶
hcse tại op dot pl ¶
$class_name
1
$class_name
2
$class_name
3
$class_name
4
$class_name
5
$class_name
6
$class_name
7
$class_name
8
$class_name
9
$params
0
$params
1
$params
2
foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
2Danielpunt ¶ ¶
cú pháp ¶
$params
4
$params
5
$params
6
foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
216 năm trước ¶
rcoles tại hotmail dot com
$params
8
$params
9
result
0
result
1
result
2
result
3
result
4
result
5
foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
219 năm trước ¶
Q
result
7
result
8
result
9
class_name
0
class_name
1
class_name
2
class_name
3
foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
218 năm trước ¶
14 năm trước
class_name
5
class_name
6
class_name
7
class_name
8
class_name
9
$variable->data->user_nicename
00foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
2backglancer tại hotmail ¶ ¶
cú pháp ¶
$variable->data->user_nicename
0216 năm trước ¶
cú pháp ¶
$variable->data->user_nicename
03$variable->data->user_nicename
04$variable->data->user_nicename
05$variable->data->user_nicename
06foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
216 năm trước ¶
hcse tại op dot pl ¶
$variable->data->user_nicename
08$variable->data->user_nicename
09$variable->data->user_nicename
10$variable->data->user_nicename
11$variable->data->user_nicename
12$variable->data->user_nicename
13Danielpunt ¶ ¶
cú pháp ¶
$variable->data->user_nicename
14$variable->data->user_nicename
15$variable->data->user_nicename
16$variable->data->user_nicename
17$variable->data->user_nicename
18$variable->data->user_nicename
19class_name
2
$variable->data->user_nicename
21foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
216 năm trước ¶
cú pháp ¶
$variable->data->user_nicename
23$variable->data->user_nicename
24$variable->data->user_nicename
25$variable->data->user_nicename
26$variable->data->user_nicename
27foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
216 năm trước ¶
Q
$variable->data->user_nicename
29$variable->data->user_nicename
30$variable->data->user_nicename
31$variable->data->user_nicename
32$variable->data->user_nicename
33foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
218 năm trước ¶
cú pháp ¶
$variable->data->user_nicename
35$variable->data->user_nicename
36$variable->data->user_nicename
37foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
216 năm trước ¶
hcse tại op dot pl ¶
$variable->data->user_nicename
39$variable->data->user_nicename
40$variable->data->user_nicename
41$variable->data->user_nicename
42$variable->data->user_nicename
43$variable->data->user_nicename
44$variable->data->user_nicename
45foreach[$result->data as $newdata] //$result is variable that store raw data
{
printf["name: %s, Pass: %s, nicename: %s
", $newdata->user_login, $newdata->user_pass, $newdata->user_nicename];
}
2