Print_r() выводит только 150 элементов в массиве

У меня есть массив $product_urls, содержащий 200 элементов.

Проблема:. Когда я делаю print_r($product_urls), PHP выдает массив, содержащий 150 элементов, и выход кажется усеченным, поскольку отсутствует его закрытие ). Я проверил генерируемый код HTML, и он действительно усечен в 150-м элементе. count($product_urls) дает 200.

Это озадачивает. Я использую фреймворк PHP под названием Laravel. Любые идеи?

Код PHP

echo "<pre>";
echo count($product_urls);
print_r($product_urls);

Выход

200Array
(
    [0] => http://www.mysite.com/mysite/mysite-Vest-With-Girl-Print/Prod/pgeproduct.aspx?iid=2409264
    [1] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Dork-Print/Prod/pgeproduct.aspx?iid=2483696
    [2] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Kasabian-Print/Prod/pgeproduct.aspx?iid=2428327
    [3] => http://www.mysite.com/mysite/mysite-Long-Sleeve-Crew-Neck-T-Shirt-With-Pocket/Prod/pgeproduct.aspx?iid=2548469
    [4] => http://www.mysite.com/Scotch-Soda/Scotch-And-Soda-T-Shirt-In-Washed-Cotton/Prod/pgeproduct.aspx?iid=2496980

    //...

    [147] => http://www.mysite.com/BePriv/Be-Priv-90210-Tiffany-T-shirt-Exclusive-To-mysite-UK/Prod/pgeproduct.aspx?iid=2262271
    [148] => http://www.mysite.com/The-Quiet-Life/The-Quiet-Life-Start-Making-Sense-T-Shirt/Prod/pgeproduct.aspx?iid=2200659
    [149] => http://www.mysite.com/The-Quiet-Life/The-Quiet-Life-Camera-Statue-T-Shirt/Prod/pgeproduct.aspx?iid=2200660

Весь вывод Print_r (используя метод Raheel Shan)

200Array
(
    [0] => http://www.mysite.com/mysite/mysite-Vest-With-Girl-Print/Prod/pgeproduct.aspx?iid=2409264
    [1] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Dork-Print/Prod/pgeproduct.aspx?iid=2483696
    [2] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Kasabian-Print/Prod/pgeproduct.aspx?iid=2428327
    [3] => http://www.mysite.com/mysite/mysite-Long-Sleeve-Crew-Neck-T-Shirt-With-Pocket/Prod/pgeproduct.aspx?iid=2548469
    [4] => http://www.mysite.com/Scotch-Soda/Scotch-And-Soda-T-Shirt-In-Washed-Cotton/Prod/pgeproduct.aspx?iid=2496980
    [5] => http://www.mysite.com/Scotch-Soda/Scotch-And-Soda-T-Shirt-with-Block-Hoop/Prod/pgeproduct.aspx?iid=2496983
    [6] => http://www.mysite.com/Carhartt/Carhartt-Marker-T-Shirt/Prod/pgeproduct.aspx?iid=2453973
    [7] => http://www.mysite.com/Levis-Vintage/Levis-Vintage-T-Shirt-1950-Sportswear/Prod/pgeproduct.aspx?iid=2270995
    [8] => http://www.mysite.com/The-Quiet-Life/The-Quiet-Life-Camera-Club-T-shirt-Bike/Prod/pgeproduct.aspx?iid=2494276
    [9] => http://www.mysite.com/Reclaimed-Vintage/Reclaimed-Vintage-Vest-with-Paisley-Peace-Print/Prod/pgeproduct.aspx?iid=2533797
    [10] => http://www.mysite.com/Supreme-Being/Supremebeing-White-Canvas-Project-T-Shirt-Mr-Jago/Prod/pgeproduct.aspx?iid=2363025
    [11] => http://www.mysite.com/Reclaimed-Vintage/Reclaimed-Vintage-T-Shirt-with-Tye-Dye-Print/Prod/pgeproduct.aspx?iid=2533633
    [12] => http://www.mysite.com/Emporio-Armani/Emporio-Armani-Pure-Cotton-Crew-T-Shirt/Prod/pgeproduct.aspx?iid=1999130
    [13] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Layered-Print/Prod/pgeproduct.aspx?iid=2457845
    [14] => http://www.mysite.com/Diesel/Diesel-T-Shirt-With-Stamp-Print/Prod/pgeproduct.aspx?iid=2441057
    [15] => http://www.mysite.com/Diesel/Diesel-T-Shirt-With-Label-Print/Prod/pgeproduct.aspx?iid=2441126
    [16] => http://www.mysite.com/Lee/Lee-T-Shirt-With-Play-Print/Prod/pgeproduct.aspx?iid=2425959
    [17] => http://www.mysite.com/Lee/Lee-T-Shirt-With-Print/Prod/pgeproduct.aspx?iid=2426033
    [18] => http://www.mysite.com/Lee/Lee-Grandad-Top/Prod/pgeproduct.aspx?iid=2425415
    [19] => http://www.mysite.com/Nike-Skateboard/Nike-Skateboarding-T-Shirt-Speciman-Icon/Prod/pgeproduct.aspx?iid=2445650
    [20] => http://www.mysite.com/American-Apparel/American-Apparel-Muscle-Tank/Prod/pgeproduct.aspx?iid=2503093
    [21] => http://www.mysite.com/Religion/Religion-Safety-Pin-Skull-T-Shirt/Prod/pgeproduct.aspx?iid=2398683
    [22] => http://www.mysite.com/Religion/Religion-Clash-Long-Sleeve-Top/Prod/pgeproduct.aspx?iid=2398419
    [23] => http://www.mysite.com/American-Apparel/American-Apparel-Helvetica-T-Shirt-ZZ/Prod/pgeproduct.aspx?iid=2502997
    [24] => http://www.mysite.com/American-Apparel/American-Apparel-Helvetica-T-Shirt-XX/Prod/pgeproduct.aspx?iid=2502998
    [25] => http://www.mysite.com/American-Apparel/American-Apparel-3/4-Sleeve-Raglan-Top/Prod/pgeproduct.aspx?iid=2503354
    [26] => http://www.mysite.com/Nike-Skateboard/Nike-Skateboarding-Laces-T-Shirt/Prod/pgeproduct.aspx?iid=2445588
    [27] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Animal-Print-Girl-Print/Prod/pgeproduct.aspx?iid=2410231
    [28] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Oxford-Pocket/Prod/pgeproduct.aspx?iid=2480313
    [29] => http://www.mysite.com/mysite/mysite-Stripe-T-Shirt-With-Pocket/Prod/pgeproduct.aspx?iid=2420685
    [30] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Flag-Print/Prod/pgeproduct.aspx?iid=2484341
    [31] => http://www.mysite.com/Cheap-Monday/Cheap-Monday-Stripe-T-Shirt/Prod/pgeproduct.aspx?iid=2379675
    [32] => http://www.mysite.com/Cheap-Monday/Cheap-Monday-Tor-T-Shirt/Prod/pgeproduct.aspx?iid=2379596
    [33] => http://www.mysite.com/Hilfiger-Denim/Hilfiger-Denim-T-Shirt/Prod/pgeproduct.aspx?iid=2309725
    [34] => http://www.mysite.com/Franklin-Marshall/Franklin-Marshall-T-Shirt/Prod/pgeproduct.aspx?iid=2360997
    [35] => http://www.mysite.com/Denham/Denham-T-Shirt-Barnum-Pocket/Prod/pgeproduct.aspx?iid=2302619
    [36] => http://www.mysite.com/Analog/Analog-Baseball-T-Shirt/Prod/pgeproduct.aspx?iid=2445332
    [37] => http://www.mysite.com/Analog/Analog-T-shirt-Astro-Dot/Prod/pgeproduct.aspx?iid=2445516
    [38] => http://www.mysite.com/Adidas-Originals/Adidas-Originals-T-Shirt-Stencil-Trefoil/Prod/pgeproduct.aspx?iid=2447712
    [39] => http://www.mysite.com/Adidas-Originals/Adidas-Originals-T-Shirt-Fine-Stripe-Trefoil-Logo/Prod/pgeproduct.aspx?iid=2447613
    [40] => http://www.mysite.com/Adidas-Originals/Adidas-Originals-Superstar-T-Shirt/Prod/pgeproduct.aspx?iid=2446200
    [41] => http://www.mysite.com/Adidas-Originals/Adidas-Originals-Originals-Icon-T-Shirt/Prod/pgeproduct.aspx?iid=2446130
    [42] => http://www.mysite.com/Adidas-Originals/Adidas-Originals-T-Shirt-Trefoil-Rasta/Prod/pgeproduct.aspx?iid=2349590
    [43] => http://www.mysite.com/Adidas-Originals/Adidas-Originals-T-Shirt-Masking-Tape/Prod/pgeproduct.aspx?iid=2349584
    [44] => http://www.mysite.com/Adidas-Originals/Adidas-Originals-Superstar-T-Shirt/Prod/pgeproduct.aspx?iid=2446162
    [45] => http://www.mysite.com/Adidas-Originals/Adidas-Originals-Daily-Hustle-T-Shirt/Prod/pgeproduct.aspx?iid=2349550
    [46] => http://www.mysite.com/G-Star/G-Star-T-Shirt-Elwood-Restany-Motorbike-Logo/Prod/pgeproduct.aspx?iid=2258870
    [47] => http://www.mysite.com/mysite/mysite-Long-Sleeved-T-Shirt-With-Grandad-Collar-In-Pique-Jersey/Prod/pgeproduct.aspx?iid=2395254
    [48] => http://www.mysite.com/Religion/Religion-Basic-Scoop-Neck-T-Shirt/Prod/pgeproduct.aspx?iid=1397435
    [49] => http://www.mysite.com/mysite/mysite-Vest-With-Racer-Back/Prod/pgeproduct.aspx?iid=2457514
    [50] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Varsity-Print/Prod/pgeproduct.aspx?iid=2484233
    [51] => http://www.mysite.com/Lazy-Oaf/Lazy-Oaf-Log-In-T-Shirt/Prod/pgeproduct.aspx?iid=2366658
    [52] => http://www.mysite.com/Ezra-Wine/Ezra-Wine-Medusa-T-Shirt/Prod/pgeproduct.aspx?iid=2383291
    [53] => http://www.mysite.com/Lazy-Oaf/Lazy-Oaf-Dropout-T-Shirt/Prod/pgeproduct.aspx?iid=2366535
    [54] => http://www.mysite.com/Lazy-Oaf/Lazy-Oaf-T-Shirt-with-Tongue-Pocket/Prod/pgeproduct.aspx?iid=2366527
    [55] => http://www.mysite.com/Lazy-Oaf/Lazy-Oaf-Going-to-Hell-T-Shirt/Prod/pgeproduct.aspx?iid=2366525
    [56] => http://www.mysite.com/Denham/Denham-T-Shirt-With-Pocket/Prod/pgeproduct.aspx?iid=2511832
    [57] => http://www.mysite.com/55DSL/55DSL-Hula-T-Shirt/Prod/pgeproduct.aspx?iid=2375696
    [58] => http://www.mysite.com/55DSL/55DSL-Sky-T-Shirt/Prod/pgeproduct.aspx?iid=2375931
    [59] => http://www.mysite.com/Selected/Selected-Stripe-T-Shirt/Prod/pgeproduct.aspx?iid=2504193
    [60] => http://www.mysite.com/Selected/Selected-Stripe-T-Shirt/Prod/pgeproduct.aspx?iid=2504191
    [61] => http://www.mysite.com/Selected/Selected-T-shirt-with-Double-Layer/Prod/pgeproduct.aspx?iid=2504184
    [62] => http://www.mysite.com/Selected/Selected-T-Shirt-with-Double-Layer/Prod/pgeproduct.aspx?iid=2504135
    [63] => http://www.mysite.com/Denham/Denham-T-Shirt-With-Scissor-Print/Prod/pgeproduct.aspx?iid=2511889
    [64] => http://www.mysite.com/Replay/Replay-T-Shirt-With-V-Neck/Prod/pgeproduct.aspx?iid=2423227
    [65] => http://www.mysite.com/Lazy-Oaf/Lazy-Oaf-Patches-T-Shirt/Prod/pgeproduct.aspx?iid=2366648
    [66] => http://www.mysite.com/Lazy-Oaf/Lazy-Oaf-T-Shirt-with-FC-Stripe/Prod/pgeproduct.aspx?iid=2366533
    [67] => http://www.mysite.com/Lazy-Oaf/Lazy-Oaf-T-Shirt-with-Bandana-Pocket/Prod/pgeproduct.aspx?iid=2366528
    [68] => http://www.mysite.com/Lazy-Oaf/Lazy-Oaf-End-is-Nigh-T-Shirt/Prod/pgeproduct.aspx?iid=2366425
    [69] => http://www.mysite.com/Christopher-Shannon/Christopher-Shannon-Kidda-Laurel-T-Shirt/Prod/pgeproduct.aspx?iid=2323166
    [70] => http://www.mysite.com/The-Quiet-Life/The-Quiet-Life-T-shirt-With-Cosmo-Pocket/Prod/pgeproduct.aspx?iid=2494015
    [71] => http://www.mysite.com/Selected/Selected-T-Shirt-with-Pocket/Prod/pgeproduct.aspx?iid=2365377
    [72] => http://www.mysite.com/Selected/Selected-Fleck-T-Shirt/Prod/pgeproduct.aspx?iid=2412803
    [73] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Aztec-Animal-Print/Prod/pgeproduct.aspx?iid=2412464
    [74] => http://www.mysite.com/Worn-By/Worn-By-Neon-Tribal-T-Shirt/Prod/pgeproduct.aspx?iid=2305500
    [75] => http://www.mysite.com/Worn-By/Worn-By-Hell-Yeah-T-Shirt/Prod/pgeproduct.aspx?iid=2305595
    [76] => http://www.mysite.com/Religion/Religion-Razor-T-Shirt/Prod/pgeproduct.aspx?iid=2303944
    [77] => http://www.mysite.com/mysite/mysite-T-Shirt-With-All-Over-Paisley-Print-And-Contrast-Pocket/Prod/pgeproduct.aspx?iid=2405169
    [78] => http://www.mysite.com/River-Island/River-Island-Vest-with-Surf-Print/Prod/pgeproduct.aspx?iid=2391220
    [79] => http://www.mysite.com/Selected/Selected-Stripe-Vest/Prod/pgeproduct.aspx?iid=2299829
    [80] => http://www.mysite.com/Selected/Selected-Stripe-Vest/Prod/pgeproduct.aspx?iid=2299786
    [81] => http://www.mysite.com/River-Island/River-Island-Motel-Vest/Prod/pgeproduct.aspx?iid=2398677
    [82] => http://www.mysite.com/River-Island/River-Island-Vest/Prod/pgeproduct.aspx?iid=2398569
    [83] => http://www.mysite.com/River-Island/River-Island-Vest-with-Shanghai-Print/Prod/pgeproduct.aspx?iid=2391145
    [84] => http://www.mysite.com/Cheap-Monday/Cheap-Monday-Mond-T-Shirt/Prod/pgeproduct.aspx?iid=2379599
    [85] => http://www.mysite.com/Esprit/Esprit-Vest/Prod/pgeproduct.aspx?iid=2249197
    [86] => http://www.mysite.com/Reclaimed-Vintage/Reclaimed-Vintage-Russian-Naval-T-Shirts/Prod/pgeproduct.aspx?iid=2274797
    [87] => http://www.mysite.com/Worn-By/Worn-By-Zebra-T-Shirt/Prod/pgeproduct.aspx?iid=2305605
    [88] => http://www.mysite.com/Savant/Savant-Fresh-T-Shirt/Prod/pgeproduct.aspx?iid=2187734
    [89] => http://www.mysite.com/New-Love-Club/New-Love-Club-Nude-T-Shirt/Prod/pgeproduct.aspx?iid=2031399
    [90] => http://www.mysite.com/Your-Eyes-Lie/Your-Eyes-Lie-All-for-You-Vest/Prod/pgeproduct.aspx?iid=1996304
    [91] => http://www.mysite.com/People-Tree/People-Tree-Sydney-Vest/Prod/pgeproduct.aspx?iid=2072528
    [92] => http://www.mysite.com/mysite/mysite-Vest-With-Aztec-Design/Prod/pgeproduct.aspx?iid=2351895
    [93] => http://www.mysite.com/mysite/mysite-Vest-With-All-Over-Geo-Print/Prod/pgeproduct.aspx?iid=2373754
    [94] => http://www.mysite.com/mysite/mysite-Stripe-T-Shirt-With-Pocket/Prod/pgeproduct.aspx?iid=2257136
    [95] => http://www.mysite.com/mysite/mysite-Stripe-T-Shirt-With-Pocket/Prod/pgeproduct.aspx?iid=2257138
    [96] => http://www.mysite.com/mysite/mysite-Crew-Long-Sleeve-Top-With-Pocket/Prod/pgeproduct.aspx?iid=1874647
    [97] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Flower-Print/Prod/pgeproduct.aspx?iid=2373623
    [98] => http://www.mysite.com/mysite/mysite-Crew-Neck-T-Shirt-With-Pocket/Prod/pgeproduct.aspx?iid=1605761
    [99] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Skull-Print/Prod/pgeproduct.aspx?iid=2483379
    [100] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Sex-Pistols-Print/Prod/pgeproduct.aspx?iid=2420836
    [101] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Aztec-Girl-Print/Prod/pgeproduct.aspx?iid=2409391
    [102] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Camo-Print-And-Chambray-Pocket/Prod/pgeproduct.aspx?iid=2408949
    [103] => http://www.mysite.com/mysite/mysite-T-Shirt-With-In-There-Like-Swimwear-Print/Prod/pgeproduct.aspx?iid=2404269
    [104] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Camo-Pocket/Prod/pgeproduct.aspx?iid=2336996
    [105] => http://www.mysite.com/mysite/mysite-T-Shirt-With-All-Over-Pattern/Prod/pgeproduct.aspx?iid=2367036
    [106] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Giant-Aztec-Print/Prod/pgeproduct.aspx?iid=2373696
    [107] => http://www.mysite.com/mysite/mysite-Crew-Neck-T-Shirt-With-Pocket/Prod/pgeproduct.aspx?iid=2378610
    [108] => http://www.mysite.com/mysite/mysite-T-Shirt-With-All-Over-Space-Print/Prod/pgeproduct.aspx?iid=2368944
    [109] => http://www.mysite.com/mysite/mysite-3/4-Sleeve-Top-In-Waffle-Jersey/Prod/pgeproduct.aspx?iid=2395846
    [110] => http://www.mysite.com/mysite/mysite-Vest-With-Fluro-Stripe/Prod/pgeproduct.aspx?iid=2352422
    [111] => http://www.mysite.com/mysite/mysite-Vest-With-David-Bowie-Print/Prod/pgeproduct.aspx?iid=2393776
    [112] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Shoulder-Patch/Prod/pgeproduct.aspx?iid=2364066
    [113] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Deep-V-Neck/Prod/pgeproduct.aspx?iid=2428120
    [114] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Shoulder-Patch/Prod/pgeproduct.aspx?iid=2375275
    [115] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Mystic-Eye-Print/Prod/pgeproduct.aspx?iid=2407356
    [116] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Aztec-Hem-Print/Prod/pgeproduct.aspx?iid=2371017
    [117] => http://www.mysite.com/mysite/mysite-T-Shirt-With-All-Over-Hula-Girl-Print/Prod/pgeproduct.aspx?iid=2407724
    [118] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Colorado-Print/Prod/pgeproduct.aspx?iid=2352880
    [119] => http://www.mysite.com/mysite/mysite-T-Shirt-With-All-Over-Print/Prod/pgeproduct.aspx?iid=2412241
    [120] => http://www.mysite.com/mysite/mysite-Stripe-T-Shirt-With-Flag-Print/Prod/pgeproduct.aspx?iid=2363870
    [121] => http://www.mysite.com/mysite/mysite-Vest-With-Tape-And-Pocket/Prod/pgeproduct.aspx?iid=2351801
    [122] => http://www.mysite.com/mysite/mysite-Vest-USA-Flag-Print/Prod/pgeproduct.aspx?iid=2352165
    [123] => http://www.mysite.com/mysite/mysite-T-Shirt-With-All-Over-And-Double-Layer-Print/Prod/pgeproduct.aspx?iid=2364006
    [124] => http://www.mysite.com/mysite/mysite-Long-Sleeve-Top-With-Deep-V/Prod/pgeproduct.aspx?iid=1873299
    [125] => http://www.mysite.com/mysite/mysite-Stripe-T-Shirt-With-Two-Tone-Jersey-Marl/Prod/pgeproduct.aspx?iid=2368253
    [126] => http://www.mysite.com/mysite/mysite-Stripe-T-Shirt/Prod/pgeproduct.aspx?iid=2373649
    [127] => http://www.mysite.com/mysite/mysite-T-Shirt-With-All-Over-Aztec-Stripe/Prod/pgeproduct.aspx?iid=2405360
    [128] => http://www.mysite.com/mysite/mysite-T-Shirt-With-All-Over-Print-And-Contrast-Neck-Trim/Prod/pgeproduct.aspx?iid=2412415
    [129] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Mask-Print/Prod/pgeproduct.aspx?iid=2412477
    [130] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Bill-And-Ted-Print/Prod/pgeproduct.aspx?iid=2320906
    [131] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Dip-Dye-Hem/Prod/pgeproduct.aspx?iid=2373764
    [132] => http://www.mysite.com/mysite/mysite-Stripe-Vest/Prod/pgeproduct.aspx?iid=2250612
    [133] => http://www.mysite.com/Solid/Solid-T-Shirt/Prod/pgeproduct.aspx?iid=2354420
    [134] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Printed-Woven-Pocket/Prod/pgeproduct.aspx?iid=2394637
    [135] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Printed-Woven-Pocket/Prod/pgeproduct.aspx?iid=2375274
    [136] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Fish-Print/Prod/pgeproduct.aspx?iid=2269490
    [137] => http://www.mysite.com/Bellfield/Bellfield-Aztec-T-Shirt/Prod/pgeproduct.aspx?iid=2383222
    [138] => http://www.mysite.com/Esprit/Esprit-T-Shirt-with-Surf-Print/Prod/pgeproduct.aspx?iid=2249271
    [139] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Rolled-Sleeves/Prod/pgeproduct.aspx?iid=2412631
    [140] => http://www.mysite.com/Reclaimed-Vintage/Reclaimed-Vintage-Russian-Naval-T-Shirt/Prod/pgeproduct.aspx?iid=2274815
    [141] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Floral-Pocket-And-Yoke/Prod/pgeproduct.aspx?iid=2199554
    [142] => http://www.mysite.com/mysite/mysite-T-Shirt-With-Eagle-Sunset-Print/Prod/pgeproduct.aspx?iid=2198894
    [143] => http://www.mysite.com/Death-By-Zero/Death-by-Zero-Primal-Urge-T-Shirt/Prod/pgeproduct.aspx?iid=2352921
    [144] => http://www.mysite.com/Death-By-Zero/Death-by-Zero-Nights-in-Manhattan-T-Shirt/Prod/pgeproduct.aspx?iid=2353016
    [145] => http://www.mysite.com/Death-By-Zero/Death-by-Zero-Hit-the-Ground-T-Shirt/Prod/pgeproduct.aspx?iid=2353013
    [146] => http://www.mysite.com/River-Island/River-Island-T-Shirt-with-Jazzy-Jeff-Print/Prod/pgeproduct.aspx?iid=2367043
    [147] => http://www.mysite.com/BePriv/Be-Priv-90210-Tiffany-T-shirt-Exclusive-To-mysite-UK/Prod/pgeproduct.aspx?iid=2262271
    [148] => http://www.mysite.com/The-Quiet-Life/The-Quiet-Life-Start-Making-Sense-T-Shirt/Prod/pgeproduct.aspx?iid=2200659
    [149] => http://www.mysite.com/The-Quiet-Life/The-Quiet-Life-Camera-Statue-T-Shirt/Prod/pgeproduct.aspx?iid=2200660
    [150] => http://www.mysite.com/Denim-Supply-by-Ralph-Lauren/Denim-Supply-by-Ralph-Lauren-Shield-Logo-T-Shirt/Prod/pgeproduct.aspx?iid=2214188
    [151] => http://www.mysite.com/Clubbed-to-Death/Clubbed-to-Death-Tie-T-Shirt/Prod/pgeproduct.aspx?iid=2342946
    [152] => http://www.mysite.com/Clubbed-to-Death/Clubbed-to-Death-RocknRoll-T-Shirt/Prod/pgeproduct.aspx?iid=2342949
    [153] => http://www.mysite.com/Clubbed-to-Death/Clubbed-to-Death-Priviledge-T-Shirt/Prod/pgeproduct.aspx?iid=2343095
    [154] => http://www.mysite.com/Clubbed-to-Death/Clubbed-to-Death-Ibiza-Rocks-T-Shirt/Prod/pgeproduct.aspx?iid=2342877
    [155] => http://www.mysite.com/Clubbed-to-Death/Clubbed-to-Death-I-Heart-Cream-T-Shirt/Prod/pgeproduct.aspx?iid=2343085
    [156] => http://www.mysite.com/Suit/Suit-Multistripe-T-Shirt/Prod/pgeproduct.aspx?iid=2245305
    [157] => http://www.mysite.com/Suit/Suit-Marl-Stripe-T-Shirt/Prod/pgeproduct.aspx?iid=2245454
    [158] => http://www.mysite.com/Suit/Suit-Block-Colour-T-Shirt/Prod/pgeproduct.aspx?iid=2245089
    [159] => http://www.mysite.com/mysite/mysite-Stripe-T-Shirt/Prod/pgeproduct.aspx?iid=2250508
    [160] => http://www.mysite.com/Worn-By/Worn-By-Rotten-Food-T-Shirt/Prod/pgeproduct.aspx?iid=2085029
    [161] => http://www.mysite.com/mysite/mysite-Stripe-T-Shirt/Prod/pgeproduct.aspx?iid=2250577
    [162] => http://www.mysite.com/Jack-Jones-Vintage/Jack-Jones-Vintage-T-Shirt/Prod/pgeproduct.aspx?iid=2217454
    [163] => http://www.mysite.com/Minimum/Minimum-Maidai-T-Shirt/Prod/pgeproduct.aspx?iid=2243906
    [164] => http://www.mysite.com/American-Apparel/American-Apparel-Oversized-T-Shirt/Prod/pgeproduct.aspx?iid=2339752
    [165] => http://www.mysite.com/Selected/Selected-Jimmy-Hendrix-T-Shirt/Prod/pgeproduct.aspx?iid=2191026
    [166] => http://www.mysite.com/mysite/mysite-Vest-With-Leaf-Print-And-Pocket/Prod/pgeproduct.aspx?iid=2261785
    [167] => http://www.mysite.com/Insight/Insight-Giddget-Must-Die-T-Shirt/Prod/pgeproduct.aspx?iid=2045641
    [168] => http://www.mysite.com/Religion/Religion-Bramford-Pocket-Vest/Prod/pgeproduct.aspx?iid=2304093
    [169] => http://www.mysite.com/Religion/Religion-Legs-T-Shirt/Prod/pgeproduct.aspx?iid=2303942
    [170] => http://www.mysite.com/WESC/WESC-Puzzle-Overlay-T-Shirt/Prod/pgeproduct.aspx?iid=2187520
    [171] => http://www.mysite.com/WESC/WESC-Icon-And-Stripes-T-Shirt/Prod/pgeproduct.aspx?iid=2187451
    [172] => http://www.mysite.com/Revolution/Revolution-Stripe-Pocket-T-Shirt/Prod/pgeproduct.aspx?iid=2247329
    [173] => http://www.mysite.com/mysite/mysite-Stripe-T-Shirt/Prod/pgeproduct.aspx?iid=2250507
    [174] => http://www.mysite.com/Religion/Religion-Striped-Vest/Prod/pgeproduct.aspx?iid=2303946
    [175] => http://www.mysite.com/Religion/Religion-Square-Pocket-T-Shirt/Prod/pgeproduct.aspx?iid=2304086
    [176] => http://www.mysite.com/Religion/Religion-Scream-T-Shirt/Prod/pgeproduct.aspx?iid=2303943
    [177] => http://www.mysite.com/Religion/Religion-Rest-in-Peace-T-Shirt/Prod/pgeproduct.aspx?iid=2303852
    [178] => http://www.mysite.com/Religion/Religion-Low-V-T-Shirt/Prod/pgeproduct.aspx?iid=2304183
    [179] => http://www.mysite.com/Religion/Religion-Gradient-T-Shirt/Prod/pgeproduct.aspx?iid=2303945
    [180] => http://www.mysite.com/Religion/Religion-Basic-Vest/Prod/pgeproduct.aspx?iid=2304260
    [181] => http://www.mysite.com/Religion/Religion-Rumours-T-Shirt/Prod/pgeproduct.aspx?iid=2304269
    [182] => http://www.mysite.com/Esprit/Esprit-Pocket-Marl-Crew-Neck-T-Shirt/Prod/pgeproduct.aspx?iid=2257627
    [183] => http://www.mysite.com/Sin-Star/Sin-Star-Live-Fast-T-Shirt/Prod/pgeproduct.aspx?iid=2274387
    [184] => http://www.mysite.com/Savant/Savant-Sofa-T-Shirt/Prod/pgeproduct.aspx?iid=2187666
    [185] => http://www.mysite.com/Savant/Savant-Puzzle-T-Shirt/Prod/pgeproduct.aspx?iid=2187664
    [186] => http://www.mysite.com/Your-Eyes-Lie/Your-Eyes-Lie-Navo-Vest/Prod/pgeproduct.aspx?iid=1996309
    [187] => http://www.mysite.com/Your-Eyes-Lie/Your-Eyes-Lie-Navo-T-Shirt/Prod/pgeproduct.aspx?iid=1996212
    [188] => http://www.mysite.com/Esprit/Esprit-Pocket-Marl-Crew-Neck-T-Shirt/Prod/pgeproduct.aspx?iid=2255386
    [189] => http://www.mysite.com/Your-Eyes-Lie/Your-Eyes-Lie-Ethnic-Animal-Vest/Prod/pgeproduct.aspx?iid=1996312
    [190] => http://www.mysite.com/Polo-Ralph-Lauren/Polo-Ralph-Lauren-Anchor-Print-T-Shirt/Prod/pgeproduct.aspx?iid=2192627
    [191] => http://www.mysite.com/Savant/Savant-Hello-Boys-T-Shirt/Prod/pgeproduct.aspx?iid=2187661
    [192] => http://www.mysite.com/Jack-Jones-Vintage/Jack-Jones-Vintage-Surf-Shop-T-Shirt/Prod/pgeproduct.aspx?iid=2217196
    [193] => http://www.mysite.com/Replay/Replay-Replay-T-Shirt-college-logo/Prod/pgeproduct.aspx?iid=2117989
    [194] => http://www.mysite.com/Esprit/Esprit-Reverse-Pocket-Stripe-Crew-Neck-T-Shirt/Prod/pgeproduct.aspx?iid=2183750
    [195] => http://www.mysite.com/Sin-Star/Sin-Star-Kill-Graphic-T-Shirt/Prod/pgeproduct.aspx?iid=2274447
    [196] => http://www.mysite.com/Sin-Star/Sin-Star-Destroy-Graphic-T-Shirt/Prod/pgeproduct.aspx?iid=2274445
    [197] => http://www.mysite.com/J-Lindeberg/J-Lindeberg-Scoop-Neck-T-Shirt/Prod/pgeproduct.aspx?iid=2228059
    [198] => http://www.mysite.com/J-Lindeberg/J-Lindeberg-Fine-Stripe-T-Shirt-with-Pocket/Prod/pgeproduct.aspx?iid=2227948
    [199] => http://www.mysite.com/mysite/mysite-Vest-With-Eagle-Print/Prod/pgeproduct.aspx?iid=2099899
)

Ответ 1

Массив, очевидно, правильный, или, по крайней мере, это 200 элементов.

Проблема заключается в том, что Laravel, вероятно, не ожидает, что вы будете снимать выходные данные с использованием echo или var_dump или print_r, а "прямой вывод HTML", скорее всего, будет разбит на какой-то выходной процессор, если вы не используете класс Laravel Logger.

Это может быть совпадение, но размер вашего вывода, кажется, падает примерно на 16 Кбайт, что является предпочтительным размером буфера нескольких процессоров/украшений/очистителей HTML.

Что произойдет, если вы array_slice, скажем, первые 20 элементов с начала вашего массива? Отображается только 130 элементов, или вы все еще видите 150 (более или менее) элементов?

Изменить: если вам действительно нужно использовать echo, print_r или любой метод "non-Laravel" для вывода чего-то быстрого и грязного, вы можете почти наверняка сделать это вот так:

  // Open another output buffering context
  ob_start();

  print_r($WHATEVER);

  $_output = ob_get_contents();
  // Destroy the context so that Laravel none the wiser
  ob_end_clean();

  $_fp = fopen("/tmp/myfile.txt", "w");
  fwrite($_fp, $_output);
  fclose($_fp);
  // Remove awkward traces
  unset($_fp, $_output);

Вы также можете инкапсулировать последнюю часть в свою собственную функцию, чтобы вы могли писать

  // in helpers.php
  function myObStop($file, $mode = 'a') {
      $_output = ob_get_contents();
      // Destroy the context so that Laravel none the wiser
      ob_end_clean();

      $_fp = fopen($file, $mode);
      fwrite($_fp, $_output);
      fclose($_fp);
  }

  ob_start();
  print "Whatever";
  myObStop('/tmp/myfile.txt', 'w');

и после этого покинуть Laravel. Но я сильно рекомендую использовать Логгер вместо этого:

  http://laravel.com/docs/logging#logging

Ответ 2

Когда я тестирую массивы, я использую это.

Я уверен, что это вспомогательная функция по умолчанию: dd()

$array;  // That is 200 elements long.

var_dump($array);
die(); // Prevents html from being rendered if executed in the controller or model.

Каждый раз, когда я пытаюсь сделать это, я считаю, что HTML-код перепутался, как сказал Iserni.